fixing bug 203377 - Alert dialogs to close browser/kill process have hard coded 'Mozilla' strings. r=sgehani, sr=jag, a=asa

git-svn-id: svn://10.0.0.236/trunk@141929 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ssu%netscape.com
2003-04-29 08:38:12 +00:00
parent 257a50c8d4
commit f215a4a489
5 changed files with 17 additions and 19 deletions

View File

@@ -2574,15 +2574,12 @@ void ProcessWindowsMessages()
void ShowMessage(LPSTR szMessage, BOOL bShow)
{
char szBuf[MAX_BUF];
if(!hDlgMessage ||!szMessage)
return;
if(sgProduct.mode != SILENT)
{
if(bShow)
if(bShow && szMessage)
{
char szBuf[MAX_BUF];
ZeroMemory(szBuf, sizeof(szBuf));
GetPrivateProfileString("Messages", "MB_MESSAGE_STR", "", szBuf, sizeof(szBuf), szFileIniInstall);
hDlgMessage = InstantiateDialog(hWndMain, DLG_MESSAGE, szBuf, DlgProcMessage);