Commit 1614f917 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Return HFILE_ERROR instead of -1 in _lread.

parent 49906feb
......@@ -258,7 +258,8 @@ HFILE WINAPI _lopen( LPCSTR path, INT mode )
UINT WINAPI _lread( HFILE handle, LPVOID buffer, UINT count )
{
DWORD result;
if (!ReadFile( (HANDLE)handle, buffer, count, &result, NULL )) return -1;
if (!ReadFile( (HANDLE)handle, buffer, count, &result, NULL ))
return HFILE_ERROR;
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment