зеркало из https://github.com/mozilla/pjs.git
Bug 116413 negative VoidArray index in GetMenuAt() in View menu on Mac
r=jfrancis sr=jst
This commit is contained in:
Родитель
c77ed7f368
Коммит
208d2443aa
|
@ -596,8 +596,11 @@ void nsPushMenuHandle(MenuHandle aMenu)
|
|||
//------------------------------------------------------------------------------
|
||||
void nsPopMenuHandle(MenuHandle * aMenu)
|
||||
{
|
||||
*aMenu = (MenuHandle) gPreviousMenuHandleStack[gPreviousMenuHandleStack.Count() - 1];
|
||||
gPreviousMenuHandleStack.RemoveElementAt(gPreviousMenuHandleStack.Count() - 1);
|
||||
if (gPreviousMenuHandleStack.Count() > 0)
|
||||
{
|
||||
*aMenu = (MenuHandle) gPreviousMenuHandleStack[gPreviousMenuHandleStack.Count() - 1];
|
||||
gPreviousMenuHandleStack.RemoveElementAt(gPreviousMenuHandleStack.Count() - 1);
|
||||
}
|
||||
}
|
||||
|
||||
#pragma options align=reset
|
||||
|
|
Загрузка…
Ссылка в новой задаче