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:
parent
bbb2f363a0
commit
86b00a5aa2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue