Fixing bug 76384 -- crash in the default plugin, r=serge, sr=attinasi

git-svn-id: svn://10.0.0.236/trunk@92614 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
av%netscape.com
2001-04-18 00:05:20 +00:00
parent c893147011
commit 51fb14306f
2 changed files with 12 additions and 4 deletions

View File

@@ -428,9 +428,13 @@ void CPlugin::showGetPluginDialog()
if((m_szPageURL != NULL) || (m_szFileURL != NULL) || !m_bJavaScript)
{
CreateDialogParam(m_hInst, MAKEINTRESOURCE(IDD_PLUGIN_DOWNLOAD), m_hWnd,
(DLGPROC)GetPluginDialogProc, (LPARAM)this);
// we don't want it more than once
if(m_hWndDialog == NULL)
CreateDialogParam(m_hInst, MAKEINTRESOURCE(IDD_PLUGIN_DOWNLOAD), m_hWnd,
(DLGPROC)GetPluginDialogProc, (LPARAM)this);
}
else
getPlugin();
}
void CPlugin::getPlugin()