mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 647296 - crashreporter.exe and updater.exe creates HKEY_CURRENT_USER\Software\Classes\Applications as a volatile key. r=khuey
This commit is contained in:
parent
6e5088b92b
commit
c20bafa55a
@ -627,6 +627,10 @@ int WINAPI wWinMain( HINSTANCE, HINSTANCE, LPWSTR args, int )
|
||||
// Remove everything except close window from the context menu
|
||||
{
|
||||
HKEY hkApp;
|
||||
RegCreateKeyExW(HKEY_CURRENT_USER, L"Software\\Classes\\Applications", 0,
|
||||
NULL, REG_OPTION_NON_VOLATILE, KEY_SET_VALUE, NULL, &hkApp,
|
||||
NULL);
|
||||
RegCloseKey(hkApp);
|
||||
if (RegCreateKeyExW(HKEY_CURRENT_USER,
|
||||
L"Software\\Classes\\Applications\\crashreporter.exe",
|
||||
0, NULL, REG_OPTION_VOLATILE, KEY_SET_VALUE, NULL,
|
||||
|
@ -1734,6 +1734,10 @@ int NS_main(int argc, NS_tchar **argv)
|
||||
// Remove everything except close window from the context menu
|
||||
{
|
||||
HKEY hkApp;
|
||||
RegCreateKeyExW(HKEY_CURRENT_USER, L"Software\\Classes\\Applications",
|
||||
0, NULL, REG_OPTION_NON_VOLATILE, KEY_SET_VALUE, NULL,
|
||||
&hkApp, NULL);
|
||||
RegCloseKey(hkApp);
|
||||
if (RegCreateKeyExW(HKEY_CURRENT_USER,
|
||||
L"Software\\Classes\\Applications\\updater.exe",
|
||||
0, NULL, REG_OPTION_VOLATILE, KEY_SET_VALUE, NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user