зеркало из https://github.com/mozilla/gecko-dev.git
[OS/2] Bug 394837: saving files doesn't work when WPS not active, r=mkaply
This commit is contained in:
Родитель
a486e15e31
Коммит
863f3bac39
|
@ -676,6 +676,11 @@ GetSpecialSystemDirectory(SystemDirectories aSystemSystemDirectory,
|
|||
char szPath[CCHMAXPATH + 1];
|
||||
BOOL fSuccess;
|
||||
fSuccess = WinQueryActiveDesktopPathname (szPath, sizeof(szPath));
|
||||
if (!fSuccess) {
|
||||
// this could happen if we are running without the WPS, return
|
||||
// the Home directory instead
|
||||
return GetSpecialSystemDirectory(OS2_HomeDirectory, aFile);
|
||||
}
|
||||
int len = strlen (szPath);
|
||||
if (len > CCHMAXPATH -1)
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче