From: <hv...@us...> - 2012-09-28 08:15:00
|
Revision: 57168 http://firebird.svn.sourceforge.net/firebird/?rev=57168&view=rev Author: hvlad Date: 2012-09-28 08:14:50 +0000 (Fri, 28 Sep 2012) Log Message: ----------- Fixed bug CORE-3940 : I/O error during "GetFileSize" operation for file XXXX Modified Paths: -------------- firebird/branches/B2_1_Release/src/jrd/os/win32/winnt.cpp Modified: firebird/branches/B2_1_Release/src/jrd/os/win32/winnt.cpp =================================================================== --- firebird/branches/B2_1_Release/src/jrd/os/win32/winnt.cpp 2012-09-28 08:14:07 UTC (rev 57167) +++ firebird/branches/B2_1_Release/src/jrd/os/win32/winnt.cpp 2012-09-28 08:14:50 UTC (rev 57168) @@ -1009,7 +1009,7 @@ 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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |