bug 359808 : drop support Win 9x/ME in xpcom/io (r/sr=darin)

This commit is contained in:
jshin%mailaps.org 2006-11-24 01:02:56 +00:00
Родитель 8a46c6cfda
Коммит 41d25104a2
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -1321,14 +1321,8 @@ nsLocalFile::GetVersionInfoField(const char* aField, nsAString& _retval)
WCHAR *path = NS_CONST_CAST(WCHAR*, mFollowSymlinks ? mResolvedPath.get() WCHAR *path = NS_CONST_CAST(WCHAR*, mFollowSymlinks ? mResolvedPath.get()
: mWorkingPath.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 dummy;
DWORD size = ::GetFileVersionInfoSizeW(shortPath, &dummy); DWORD size = ::GetFileVersionInfoSizeW(path, &dummy);
if (!size) if (!size)
return rv; return rv;