mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
Return HFILE_ERROR instead of -1 in _lread.
This commit is contained in:
parent
49906feb23
commit
1614f91767
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user