landing dbaron's patch for bug 235735 "fix callers that cast away const on result of ns[C]String::get" r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@153357 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1733,7 +1733,7 @@ nsCString nsNativeAppSupportOS2::ParseDDEArg( HSZ args, int index ) {
|
||||
// Ensure result's buffer is sufficiently big.
|
||||
temp.SetLength( argLen + 1 );
|
||||
// Now get the string contents.
|
||||
WinDdeQueryString( args, (char*)temp.get(), temp.Length(), CP_WINANSI );
|
||||
WinDdeQueryString( args, temp.BeginWriting(), temp.Length(), CP_WINANSI );
|
||||
// Parse out the given arg.
|
||||
const char *p = temp.get();
|
||||
// offset points to the comma preceding the desired arg.
|
||||
|
||||
Reference in New Issue
Block a user