mirror of
https://github.com/taglib/taglib.git
synced 2025-07-19 05:24:25 -04:00
Fix a change breaks compatibility with Win9x
This commit is contained in:
@ -490,9 +490,9 @@ long FileStream::length()
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
LARGE_INTEGER fileSize;
|
||||
if(GetFileSizeEx(d->file, &fileSize)) {
|
||||
d->size = static_cast<ulong>(fileSize.QuadPart);
|
||||
const DWORD fileSize = GetFileSize(d->file, NULL);
|
||||
if(GetLastError() != ERROR_SUCCESS) {
|
||||
d->size = static_cast<ulong>(fileSize);
|
||||
return d->size;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user