Skip to content

Commit

Permalink
Fixed bug CORE-3940 : I/O error during "GetFileSize" operation for fi…
Browse files Browse the repository at this point in the history
…le XXXX
  • Loading branch information
hvlad committed Sep 28, 2012
1 parent 44aeefb commit 40606c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jrd/os/win32/winnt.cpp
Expand Up @@ -843,7 +843,7 @@ ULONG PIO_get_number_of_pages(const jrd_file* file, const USHORT pagesize)
DWORD dwFileSizeHigh;
const DWORD dwFileSizeLow = GetFileSize(hFile, &dwFileSizeHigh);

if (dwFileSizeLow == (DWORD) -1) {
if ((dwFileSizeLow == INVALID_FILE_SIZE) && (GetLastError() != NO_ERROR)) {
nt_error("GetFileSize", file, isc_io_access_err, 0);
}

Expand Down

0 comments on commit 40606c9

Please sign in to comment.