зеркало из https://github.com/mozilla/pjs.git
bug 359808 : drop support Win 9x/ME in xpcom/io (r/sr=darin)
This commit is contained in:
Родитель
8a46c6cfda
Коммит
41d25104a2
|
@ -1321,14 +1321,8 @@ nsLocalFile::GetVersionInfoField(const char* aField, nsAString& _retval)
|
|||
WCHAR *path = NS_CONST_CAST(WCHAR*, mFollowSymlinks ? mResolvedPath.get()
|
||||
: mWorkingPath.get());
|
||||
|
||||
// Per http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/versioninformation/versioninformationreference/versioninformationfunctions/getfileversioninfosize.asp
|
||||
// if the "short" version of this file name is > 125 characters,
|
||||
// GetFileVersionInfoSize will not work (for Win9x compatibility)
|
||||
WCHAR shortPath[126];
|
||||
::GetShortPathNameW(path, shortPath, sizeof(shortPath));
|
||||
|
||||
DWORD dummy;
|
||||
DWORD size = ::GetFileVersionInfoSizeW(shortPath, &dummy);
|
||||
DWORD size = ::GetFileVersionInfoSizeW(path, &dummy);
|
||||
if (!size)
|
||||
return rv;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче