commit | 1614f91767197841b0174ad73aae48993841061a | [log] [tgz] |
---|---|---|
author | Francois Gouget <fgouget@free.fr> | Fri Jan 16 21:23:32 2004 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Jan 16 21:23:32 2004 +0000 |
tree | 75e6b47633ad1add0c657fe3141626d02f0f853d | |
parent | 49906feb23fd9604df710dbe29e363a402b1d08d [diff] [blame] |
Return HFILE_ERROR instead of -1 in _lread.
diff --git a/dlls/kernel/file.c b/dlls/kernel/file.c index 701d39b..9cd924b 100644 --- a/dlls/kernel/file.c +++ b/dlls/kernel/file.c
@@ -258,7 +258,8 @@ 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; }