From e4f42bc50705685a1094f9d0f9fccab5106400de Mon Sep 17 00:00:00 2001 From: "ssu%netscape.com" Date: Thu, 11 Nov 1999 05:33:38 +0000 Subject: [PATCH] part of fixing bug #18107. This checkin fixes problem with passing in the correct length of the string value to set in the windows registry. This fix affects only the windows platform. r=sgehani --- xpinstall/src/nsWinReg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpinstall/src/nsWinReg.cpp b/xpinstall/src/nsWinReg.cpp index 87d30cfde45..2a775750109 100644 --- a/xpinstall/src/nsWinReg.cpp +++ b/xpinstall/src/nsWinReg.cpp @@ -342,7 +342,7 @@ nsWinReg::NativeSetValueString(const nsString& subkey, const nsString& valname, char* valnameCString = valname.ToNewCString(); char* valueCString = value.ToNewCString(); - length = subkey.Length(); + length = value.Length(); root = (HKEY) mRootKey; result = RegOpenKeyEx( root, subkeyCString, 0, KEY_ALL_ACCESS, &newkey);