mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
fixing code that relies on implicit string construction
This commit is contained in:
parent
75c622b464
commit
e7c7c66f5b
@ -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