From f8e075140c40369214953b69862daed4caa40f5d Mon Sep 17 00:00:00 2001 From: "bmlk%gmx.de" Date: Sun, 11 Apr 2004 17:48:45 +0000 Subject: [PATCH] curKey can't be const as it is used as an output argument at RegEnumKeyEx bug 223238. git-svn-id: svn://10.0.0.236/trunk@154688 18797224-902f-48f8-a5cc-f745e15eee43 --- .../modules/plugin/base/src/nsPluginDirServiceProvider.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/modules/plugin/base/src/nsPluginDirServiceProvider.cpp b/mozilla/modules/plugin/base/src/nsPluginDirServiceProvider.cpp index cabdc14243e..0e8edb6bb28 100644 --- a/mozilla/modules/plugin/base/src/nsPluginDirServiceProvider.cpp +++ b/mozilla/modules/plugin/base/src/nsPluginDirServiceProvider.cpp @@ -276,7 +276,7 @@ nsPluginDirServiceProvider::GetFile(const char *prop, PRBool *persistant, nsIFil DWORD pathlen; verBlock maxVer; ClearVersion(&maxVer); - const char curKey[_MAX_PATH] = "Software\\JavaSoft\\Java Plug-in"; + char curKey[_MAX_PATH] = "Software\\JavaSoft\\Java Plug-in"; char path[_MAX_PATH]; char newestPath[_MAX_PATH + 4]; // to prevent buffer overrun when adding \bin const char mozPath[_MAX_PATH] = "Software\\mozilla.org\\Mozilla"; @@ -291,7 +291,7 @@ nsPluginDirServiceProvider::GetFile(const char *prop, PRBool *persistant, nsIFil path[0] = 0; numChars = _MAX_PATH; pathlen = sizeof(path); - result = ::RegEnumKeyEx(baseloc, index, (char *) curKey, &numChars, NULL, NULL, NULL, &modTime); + result = ::RegEnumKeyEx(baseloc, index, curKey, &numChars, NULL, NULL, NULL, &modTime); index++; if (ERROR_SUCCESS == result) { if (ERROR_SUCCESS == ::RegOpenKeyEx(baseloc, curKey, 0, KEY_QUERY_VALUE, &keyloc)) {