Commit b3132be8 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

kernelbase: Query FileStandardInformation instead of FileEndOfFileInformation in…

kernelbase: Query FileStandardInformation instead of FileEndOfFileInformation in SetFilePointerEx(). Signed-off-by: 's avatarPaul Gofman <pgofman@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent a0324df7
......@@ -3621,7 +3621,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetFilePointerEx( HANDLE file, LARGE_INTEGER dista
LONGLONG pos;
IO_STATUS_BLOCK io;
FILE_POSITION_INFORMATION info;
FILE_END_OF_FILE_INFORMATION eof;
FILE_STANDARD_INFORMATION eof;
switch(method)
{
......@@ -3634,7 +3634,7 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetFilePointerEx( HANDLE file, LARGE_INTEGER dista
pos = info.CurrentByteOffset.QuadPart + distance.QuadPart;
break;
case FILE_END:
if (NtQueryInformationFile( file, &io, &eof, sizeof(eof), FileEndOfFileInformation ))
if (NtQueryInformationFile( file, &io, &eof, sizeof(eof), FileStandardInformation ))
goto error;
pos = eof.EndOfFile.QuadPart + distance.QuadPart;
break;
......
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