fixing code that relies on implicit string construction

This commit is contained in:
scc%mozilla.org 2000-09-02 23:59:08 +00:00
parent 75c622b464
commit e7c7c66f5b

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