Commit a611b20c authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Improve ConfirmEx hack.

parent be6d891f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment