kernel32: Use FileStandardInformation to get file size.

This commit is contained in:
Vitaliy Margolen 2008-09-14 11:02:04 -06:00 committed by Alexandre Julliard
parent 322edbfe09
commit 0b6f677d10
1 changed files with 2 additions and 2 deletions

View File

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