From: <hv...@us...> - 2012-09-28 08:13:33
|
Revision: 57166 http://firebird.svn.sourceforge.net/firebird/?rev=57166&view=rev Author: hvlad Date: 2012-09-28 08:13:23 +0000 (Fri, 28 Sep 2012) Log Message: ----------- Fixed bug CORE-3940 : I/O error during "GetFileSize" operation for file XXXX Modified Paths: -------------- firebird/trunk/src/jrd/os/win32/winnt.cpp Modified: firebird/trunk/src/jrd/os/win32/winnt.cpp =================================================================== --- firebird/trunk/src/jrd/os/win32/winnt.cpp 2012-09-28 03:32:42 UTC (rev 57165) +++ firebird/trunk/src/jrd/os/win32/winnt.cpp 2012-09-28 08:13:23 UTC (rev 57166) @@ -843,7 +843,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. |