xmlwf/win32filemap.c: Add two missing calls to CloseHandle
This commit is contained in:
parent
00c905d19b
commit
a1be6aa256
@ -42,10 +42,12 @@ filemap(const TCHAR *name,
|
||||
size = GetFileSize(f, &sizeHi);
|
||||
if (size == (DWORD)-1) {
|
||||
win32perror(name);
|
||||
CloseHandle(f);
|
||||
return 0;
|
||||
}
|
||||
if (sizeHi) {
|
||||
_ftprintf(stderr, _T("%s: bigger than 2Gb\n"), name);
|
||||
CloseHandle(f);
|
||||
return 0;
|
||||
}
|
||||
/* CreateFileMapping barfs on zero length files */
|
||||
|
Loading…
Reference in New Issue
Block a user