fixing code that relies on implicit string construction

git-svn-id: svn://10.0.0.236/trunk@78043 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org 2000-09-02 23:59:08 +00:00
parent 3d0898d9e0
commit 81a3827ac0

View File

@ -68,7 +68,7 @@ PRBool GetCommandString( const char *pProtocol, nsCString& command)
// <protocol>/shell/open/command
PRBool result = PR_FALSE;
nsCString reg = pProtocol;
nsCString reg(pProtocol);
reg.Append( "\\shell\\open\\command");
HKEY hKey;
LONG err = ::RegOpenKeyEx( HKEY_CLASSES_ROOT, reg, 0, KEY_QUERY_VALUE, &hKey);