Commit 0b6f677d authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

kernel32: Use FileStandardInformation to get file size.

parent 322edbfe
......@@ -899,11 +899,11 @@ DWORD WINAPI GetFileSize( HANDLE hFile, LPDWORD filesizehigh )
*/
BOOL WINAPI GetFileSizeEx( HANDLE hFile, PLARGE_INTEGER lpFileSize )
{
FILE_END_OF_FILE_INFORMATION info;
FILE_STANDARD_INFORMATION info;
IO_STATUS_BLOCK io;
NTSTATUS status;
status = NtQueryInformationFile( hFile, &io, &info, sizeof(info), FileEndOfFileInformation );
status = NtQueryInformationFile( hFile, &io, &info, sizeof(info), FileStandardInformation );
if (status == STATUS_SUCCESS)
{
*lpFileSize = info.EndOfFile;
......
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