Undo zero check
This commit is contained in:
parent
88fc415c69
commit
b6b2750327
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ proc close*(f: var MemFile) =
|
|||
var lastErr: OSErrorCode
|
||||
|
||||
when defined(windows):
|
||||
if f.fHandle != INVALID_HANDLE_VALUE and f.fHandle != 0:
|
||||
if f.fHandle != INVALID_HANDLE_VALUE:
|
||||
error = unmapViewOfFile(f.mem) == 0
|
||||
lastErr = osLastError()
|
||||
error = (closeHandle(f.mapHandle) == 0) or error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue