mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Take address before casting to avoid confusing the gcc optimizer with what perhaps shouldn't compile anyway. r=pinkerton sr=sfraser b=108585
This commit is contained in:
parent
6d232445db
commit
65a4025f4e
@ -348,7 +348,7 @@ NS_METHOD nsMenuX::AddMenu(nsIMenu * aMenu)
|
||||
::DisableMenuItem(mMacMenuHandle, currItemIndex);
|
||||
|
||||
MenuHandle childMenu;
|
||||
if (aMenu->GetNativeData(&(void*)childMenu) == NS_OK)
|
||||
if (aMenu->GetNativeData((void**)&childMenu) == NS_OK)
|
||||
::SetMenuItemHierarchicalMenu((MenuHandle) mMacMenuHandle, currItemIndex, childMenu);
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user