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:
av%netscape.com
2000-02-08 01:31:16 +00:00
parent 46ad10c8b9
commit 4a7515fc0e
2 changed files with 2 additions and 26 deletions

View File

@@ -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);
}

View File

@@ -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);
}