Skip to content

Commit

Permalink
Fix bitwise operation in debugger on win32 UI
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaldovi committed Mar 9, 2019
1 parent 642526f commit 78ea5be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/win32/debugger.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ hide_hidden_panes( void )
mii.cbSize = sizeof( MENUITEMINFO );
if( ! GetMenuItemInfo( GetMenu( fuse_hDBGWnd ), checkitem, FALSE, &mii ) )
return 1;
if( mii.fState && MFS_CHECKED ) continue;

if( mii.fState & MFS_CHECKED ) continue;

if( ! show_hide_pane( i, SW_HIDE ) ) return 1;
}
Expand Down Expand Up @@ -340,7 +340,7 @@ toggle_display( debugger_pane pane, UINT menu_item_id )

/* Windows doesn't automatically checks/unchecks
the menus when they're clicked */
if( mii.fState && MFS_CHECKED ) {
if( mii.fState & MFS_CHECKED ) {
show_hide_pane( pane, SW_HIDE );
mii.fState = MFS_UNCHECKED;
SetMenuItemInfo( GetMenu( fuse_hDBGWnd ), menu_item_id, FALSE, &mii );
Expand Down

0 comments on commit 78ea5be

Please sign in to comment.