mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1175039: Sync XUL_APP_FILE between the various CRT environments. r=ted
This commit is contained in:
parent
94d66538a9
commit
e085729238
@ -4176,6 +4176,18 @@ XREMain::XRE_mainRun()
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
// Hack to sync up the various environment storages. XUL_APP_FILE is special
|
||||
// in that it comes from a different CRT (firefox.exe's static-linked copy).
|
||||
// Ugly details in http://bugzil.la/1175039#c27
|
||||
char appFile[MAX_PATH];
|
||||
if (GetEnvironmentVariableA("XUL_APP_FILE", appFile, sizeof(appFile))) {
|
||||
char* saved = PR_smprintf("XUL_APP_FILE=%s", appFile);
|
||||
PR_SetEnv(saved);
|
||||
PR_smprintf_free(saved);
|
||||
}
|
||||
#endif
|
||||
|
||||
SaveStateForAppInitiatedRestart();
|
||||
|
||||
// clear out any environment variables which may have been set
|
||||
|
Loading…
Reference in New Issue
Block a user