Commit 86b00a5a authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

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

parent bbb2f363
......@@ -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;
}
......
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