mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
fix retrieval of old menubar handle in HandleActivateEvent. fixes crash bug when swapping the active window.
This commit is contained in:
parent
4b1fb3f134
commit
0ff02372b9
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user