зеркало из https://github.com/mozilla/gecko-dev.git
Bug 504432 - [WinCE] updater.exe not launched when there is an update during startup. r=vlad
This commit is contained in:
Родитель
eddcc72376
Коммит
c02a6b6c3f
|
@ -125,12 +125,11 @@ GetCurrentWorkingDir(char *buf, size_t size)
|
|||
if (DosQueryPathInfo( ".", FIL_QUERYFULLNAME, buf, size))
|
||||
return NS_ERROR_FAILURE;
|
||||
#elif defined(XP_WIN)
|
||||
wchar_t *wpath = _wgetcwd(NULL, size);
|
||||
if (!wpath)
|
||||
wchar_t wpath[MAX_PATH];
|
||||
if (!_wgetcwd(wpath, size))
|
||||
return NS_ERROR_FAILURE;
|
||||
NS_ConvertUTF16toUTF8 path(wpath);
|
||||
strncpy(buf, path.get(), size);
|
||||
free(wpath);
|
||||
#else
|
||||
if(!getcwd(buf, size))
|
||||
return NS_ERROR_FAILURE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче