From 0b6f677d10b9a95c7bb20759a5ff3f9d3e21e64d Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Sun, 14 Sep 2008 11:02:04 -0600 Subject: [PATCH] kernel32: Use FileStandardInformation to get file size. --- dlls/kernel32/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c index e6e5210aaf3..a8b6d308ce1 100644 --- a/dlls/kernel32/file.c +++ b/dlls/kernel32/file.c @@ -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;