mshtml: Improve ConfirmEx hack.

This commit is contained in:
Jacek Caban 2006-02-24 22:21:03 +01:00 committed by Alexandre Julliard
parent be6d891f0d
commit a611b20c26

View File

@ -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;
}