Commit 9b495caa authored by Carlo Bramini's avatar Carlo Bramini Committed by Alexandre Julliard

msvcrt: Call SetFilePointer() with correct parameters.

parent 75e03c13
......@@ -1309,7 +1309,7 @@ int CDECL MSVCRT__locking(int fd, int mode, LONG nbytes)
(mode==MSVCRT__LK_NBRLCK)?"_LK_NBRLCK":
"UNKNOWN");
if ((cur_locn = SetFilePointer(info->handle, 0L, NULL, SEEK_CUR)) == INVALID_SET_FILE_POINTER)
if ((cur_locn = SetFilePointer(info->handle, 0L, NULL, FILE_CURRENT)) == INVALID_SET_FILE_POINTER)
{
release_ioinfo(info);
FIXME ("Seek failed\n");
......
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