Cleaning up. No changes in executable code.
git-svn-id: svn://10.0.0.236/trunk@60027 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -160,12 +160,6 @@ nsPluginsDir::nsPluginsDir(PRUint16 location)
|
||||
char szKey[512] = "Software\\Netscape\\Netscape Navigator";
|
||||
|
||||
path[0] = 0;
|
||||
/*
|
||||
result = ::RegOpenKeyEx(HKEY_CURRENT_USER,
|
||||
"Software\\Netscape\\Netscape Navigator\\Main",
|
||||
0, KEY_READ, &keyloc);
|
||||
*/
|
||||
|
||||
result = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE, szKey, 0, KEY_READ, &keyloc);
|
||||
|
||||
if (result == ERROR_SUCCESS)
|
||||
@@ -181,18 +175,12 @@ nsPluginsDir::nsPluginsDir(PRUint16 location)
|
||||
PL_strcat(szKey, "\\Main");
|
||||
result = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE, szKey, 0, KEY_READ, &keyloc);
|
||||
}
|
||||
/**/
|
||||
|
||||
if (result == ERROR_SUCCESS)
|
||||
{
|
||||
pathlen = sizeof(path);
|
||||
|
||||
result = ::RegQueryValueEx(keyloc, "Plugins Directory", NULL, &type, (LPBYTE)&path, &pathlen);
|
||||
/*
|
||||
if (result == ERROR_SUCCESS)
|
||||
{
|
||||
PL_strcat(path, "\\Program\\Plugins");
|
||||
}
|
||||
*/
|
||||
::RegCloseKey(keyloc);
|
||||
}
|
||||
|
||||
|
||||
@@ -160,12 +160,6 @@ nsPluginsDir::nsPluginsDir(PRUint16 location)
|
||||
char szKey[512] = "Software\\Netscape\\Netscape Navigator";
|
||||
|
||||
path[0] = 0;
|
||||
/*
|
||||
result = ::RegOpenKeyEx(HKEY_CURRENT_USER,
|
||||
"Software\\Netscape\\Netscape Navigator\\Main",
|
||||
0, KEY_READ, &keyloc);
|
||||
*/
|
||||
|
||||
result = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE, szKey, 0, KEY_READ, &keyloc);
|
||||
|
||||
if (result == ERROR_SUCCESS)
|
||||
@@ -181,18 +175,12 @@ nsPluginsDir::nsPluginsDir(PRUint16 location)
|
||||
PL_strcat(szKey, "\\Main");
|
||||
result = ::RegOpenKeyEx(HKEY_LOCAL_MACHINE, szKey, 0, KEY_READ, &keyloc);
|
||||
}
|
||||
/**/
|
||||
|
||||
if (result == ERROR_SUCCESS)
|
||||
{
|
||||
pathlen = sizeof(path);
|
||||
|
||||
result = ::RegQueryValueEx(keyloc, "Plugins Directory", NULL, &type, (LPBYTE)&path, &pathlen);
|
||||
/*
|
||||
if (result == ERROR_SUCCESS)
|
||||
{
|
||||
PL_strcat(path, "\\Program\\Plugins");
|
||||
}
|
||||
*/
|
||||
::RegCloseKey(keyloc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user