Skip to content
Snippets Groups Projects
Commit a611b20c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

mshtml: Improve ConfirmEx hack.

parent be6d891f
No related branches found
No related tags found
No related merge requests found
......@@ -122,14 +122,14 @@ static nsresult NSAPI nsPromptService_ConfirmEx(nsIPromptService *iface,
* This is really very very ugly hack!!!
*/
if(!memcmp(aButton0Title, wszContinue, sizeof(wszContinue)))
if(aButton0Title && !memcmp(aButton0Title, wszContinue, sizeof(wszContinue)))
*_retval = 0;
else if(!memcmp(aButton1Title, wszContinue, sizeof(wszContinue)))
else if(aButton1Title && !memcmp(aButton1Title, wszContinue, sizeof(wszContinue)))
*_retval = 1;
else if(!memcmp(aButton2Title, wszContinue, sizeof(wszContinue)))
else if(aButton2Title && !memcmp(aButton2Title, wszContinue, sizeof(wszContinue)))
*_retval = 2;
else
*_retval = 0;
/* else
* let's hope that _retval is set to the default value */
return NS_OK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment