Fix for bug 304955: Crash when scrolling through page [@ nsWindow::GetTopLevelWindow]

r+sr=roc
This commit is contained in:
emaijala%kolumbus.fi 2005-08-22 04:18:47 +00:00
Родитель f7cfd1438f
Коммит d6a70c7b83
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -76,6 +76,7 @@
#include "gfxIImageFrame.h"
#include "nsNativeCharsetUtils.h"
#include <windows.h>
#include <process.h>
#ifdef WINCE
#include "aygshell.h"
@ -1368,9 +1369,14 @@ nsWindow::EventIsInsideWindow(UINT Msg, nsWindow* aWindow)
return (PRBool) PtInRect(&r, mp);
}
static char* sPropName = "MozillansIWidgetPtr";
static char sPropName[40] = "";
static char* GetNSWindowPropName() {
return sPropName;
if (!*sPropName)
{
_snprintf(sPropName, 39, "MozillansIWidgetPtr%p", _getpid());
sPropName[39] = '\0';
}
return sPropName;
}
nsWindow * nsWindow::GetNSWindowPtr(HWND aWnd) {