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:
Robert Strong 2011-06-09 15:14:19 -07:00
parent 6e5088b92b
commit c20bafa55a
2 changed files with 8 additions and 0 deletions

View File

@ -627,6 +627,10 @@ int WINAPI wWinMain( HINSTANCE, HINSTANCE, LPWSTR args, int )
// Remove everything except close window from the context menu // Remove everything except close window from the context menu
{ {
HKEY hkApp; 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, if (RegCreateKeyExW(HKEY_CURRENT_USER,
L"Software\\Classes\\Applications\\crashreporter.exe", L"Software\\Classes\\Applications\\crashreporter.exe",
0, NULL, REG_OPTION_VOLATILE, KEY_SET_VALUE, NULL, 0, NULL, REG_OPTION_VOLATILE, KEY_SET_VALUE, NULL,

View File

@ -1734,6 +1734,10 @@ int NS_main(int argc, NS_tchar **argv)
// Remove everything except close window from the context menu // Remove everything except close window from the context menu
{ {
HKEY hkApp; 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, if (RegCreateKeyExW(HKEY_CURRENT_USER,
L"Software\\Classes\\Applications\\updater.exe", L"Software\\Classes\\Applications\\updater.exe",
0, NULL, REG_OPTION_VOLATILE, KEY_SET_VALUE, NULL, 0, NULL, REG_OPTION_VOLATILE, KEY_SET_VALUE, NULL,