xmlwf/win32filemap.c: Add two missing calls to CloseHandle

This commit is contained in:
Sebastian Pipping 2017-05-23 01:26:17 +02:00
parent 00c905d19b
commit a1be6aa256

View File

@ -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 */