* fhandler.cc (is_at_eof): Fix conditional. Use INVALID_FILE_SIZE
instead of numeric constant.
This commit is contained in:
parent
6852f6c0f6
commit
0372ad9f11
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue