msvcp90: Remove special handling of directories in tr2::sys::_File_size.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2017-07-12 11:28:30 +02:00 committed by Alexandre Julliard
parent bbb2f363a0
commit 86b00a5aa2
1 changed files with 0 additions and 4 deletions

View File

@ -14673,8 +14673,6 @@ ULONGLONG __cdecl tr2_sys__File_size(char const* path)
TRACE("(%s)\n", debugstr_a(path));
if(!GetFileAttributesExA(path, GetFileExInfoStandard, &fad))
return 0;
if(fad.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
return 0;
return ((ULONGLONG)(fad.nFileSizeHigh) << 32) + fad.nFileSizeLow;
}
@ -15465,8 +15463,6 @@ ULONGLONG __cdecl tr2_sys__File_size_wchar(WCHAR const* path)
TRACE("(%s)\n", debugstr_w(path));
if(!GetFileAttributesExW(path, GetFileExInfoStandard, &fad))
return 0;
if(fad.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
return 0;
return ((ULONGLONG)(fad.nFileSizeHigh) << 32) + fad.nFileSizeLow;
}