mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
fixing bug #31875 under win95. a=chofmann r=cathleen
This commit is contained in:
parent
12f631bcc3
commit
4619755e33
@ -56,8 +56,17 @@ Program Folder Path=[COMMON_PROGRAMS]
|
||||
Default Setup Type=Setup Type 0
|
||||
|
||||
Setup Title0=Mozilla Seamonkey Setup
|
||||
Setup Title0 Font Size=
|
||||
Setup Title0 Font Color=
|
||||
Setup Title0 Font Shadow=TRUE
|
||||
Setup Title1=Build $Version$
|
||||
Setup Title0 Font Size=
|
||||
Setup Title0 Font Color=
|
||||
Setup Title0 Font Shadow=TRUE
|
||||
Setup Title2=
|
||||
Setup Title0 Font Size=
|
||||
Setup Title0 Font Color=
|
||||
Setup Title0 Font Shadow=TRUE
|
||||
|
||||
; HKey: valid decryptable setup keys are [Mozilla Seamonkey CurrentVersion]
|
||||
; and [Mozilla Seamonkey CurrentVersion].
|
||||
@ -400,7 +409,7 @@ WorkingDir=[SETUP PATH]
|
||||
; original size and position. An application should specify
|
||||
; this flag when displaying the window for the first time.
|
||||
[Program Folder0]
|
||||
Timing=post download
|
||||
Timing=post smartupdate
|
||||
Show Folder=SHOW
|
||||
Program Folder=[Default Folder]
|
||||
|
||||
|
@ -3586,7 +3586,14 @@ HRESULT DecryptVariable(LPSTR szVariable, DWORD dwVariableSize)
|
||||
else if(lstrcmpi(szVariable, "COMMON_STARTUP") == 0)
|
||||
{
|
||||
/* parse for the "C:\WINNT40\Profiles\All Users\Start Menu\\Programs\\Startup" directory */
|
||||
GetWinReg(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Common Startup", szVariable, dwVariableSize);
|
||||
if((dwOSType & OS_WIN95) || (dwOSType & OS_WIN98))
|
||||
{
|
||||
GetWinReg(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Startup", szVariable, dwVariableSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
GetWinReg(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Common Startup", szVariable, dwVariableSize);
|
||||
}
|
||||
}
|
||||
else if(lstrcmpi(szVariable, "COMMON_PROGRAMS") == 0)
|
||||
{
|
||||
@ -3615,7 +3622,14 @@ HRESULT DecryptVariable(LPSTR szVariable, DWORD dwVariableSize)
|
||||
else if(lstrcmpi(szVariable, "COMMON_DESKTOP") == 0)
|
||||
{
|
||||
/* parse for the "C:\WINNT40\Profiles\All Users\Desktop" directory */
|
||||
GetWinReg(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Common Desktop", szVariable, dwVariableSize);
|
||||
if((dwOSType & OS_WIN95) || (dwOSType & OS_WIN98))
|
||||
{
|
||||
GetWinReg(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Desktop", szVariable, dwVariableSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
GetWinReg(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Common Desktop", szVariable, dwVariableSize);
|
||||
}
|
||||
}
|
||||
else if(lstrcmpi(szVariable, "PERSONAL_STARTUP") == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user