fix retrieval of old menubar handle in HandleActivateEvent. fixes crash bug when swapping the active window.

This commit is contained in:
danm%netscape.com 1999-03-23 19:26:50 +00:00
parent 4b1fb3f134
commit 0ff02372b9

View File

@ -311,8 +311,8 @@ PRBool nsMacEventHandler::HandleActivateEvent(EventRecord& aOSEvent)
if (menuBar)
{
MenuHandle menuHandle = nsnull;
menuBar->GetNativeData((void**)&menuHandle);
menuBar->GetNativeData((void *)menuHandle);
::SetMenuBar((Handle)menuHandle);
menuBar->Paint();
}