* fhandler.cc (is_at_eof): Fix conditional. Use INVALID_FILE_SIZE

instead of numeric constant.
This commit is contained in:
Corinna Vinschen 2003-05-26 15:43:54 +00:00
parent 6852f6c0f6
commit 0372ad9f11
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-05-26 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (is_at_eof): Fix conditional. Use INVALID_FILE_SIZE
instead of numeric constant.
2003-05-26 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::connect): Guard calls to

View file

@ -206,7 +206,7 @@ is_at_eof (HANDLE h, DWORD err)
DWORD size, upper1, curr;
size = GetFileSize (h, &upper1);
if (upper1 != 0xffffffff || GetLastError () == NO_ERROR)
if (size != INVALID_FILE_SIZE || GetLastError () == NO_ERROR)
{
LONG upper2 = 0;
curr = SetFilePointer (h, 0, &upper2, FILE_CURRENT);