buttons could be used initialized if locking the looper failed (CID 1134)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27440 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1407,7 +1407,7 @@ BMenu::_Track(int *action, long start)
|
|||||||
fSuper->fState = MENU_STATE_TRACKING_SUBMENU;
|
fSuper->fState = MENU_STATE_TRACKING_SUBMENU;
|
||||||
|
|
||||||
BPoint location;
|
BPoint location;
|
||||||
uint32 buttons;
|
uint32 buttons = 0;
|
||||||
if (LockLooper()) {
|
if (LockLooper()) {
|
||||||
GetMouse(&location, &buttons);
|
GetMouse(&location, &buttons);
|
||||||
UnlockLooper();
|
UnlockLooper();
|
||||||
|
|||||||
Reference in New Issue
Block a user