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:
parent
3d0898d9e0
commit
81a3827ac0
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user