Commit 7bc4ca5b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wow64win: Fix NtUserGetMenuBarInfo thunk.

parent bb9bede0
...@@ -2091,12 +2091,13 @@ NTSTATUS WINAPI wow64_NtUserGetMenuBarInfo( UINT *args ) ...@@ -2091,12 +2091,13 @@ NTSTATUS WINAPI wow64_NtUserGetMenuBarInfo( UINT *args )
} }
info.cbSize = sizeof(info); info.cbSize = sizeof(info);
info.rcBar = info32->rcBar; if (!NtUserGetMenuBarInfo( hwnd, id, item, &info )) return FALSE;
info.hMenu = UlongToHandle( info32->hMenu ); info32->rcBar = info.rcBar;
info.hwndMenu = UlongToHandle( info32->hwndMenu ); info32->hMenu = HandleToUlong( info.hMenu );
info.fBarFocused = info32->fBarFocused; info32->hwndMenu = HandleToUlong( info.hwndMenu );
info.fFocused = info32->fFocused; info32->fBarFocused = info.fBarFocused;
return NtUserGetMenuBarInfo( hwnd, id, item, &info ); info32->fFocused = info.fFocused;
return TRUE;
} }
NTSTATUS WINAPI wow64_NtUserGetMenuItemRect( UINT *args ) NTSTATUS WINAPI wow64_NtUserGetMenuItemRect( UINT *args )
...@@ -2136,7 +2137,7 @@ NTSTATUS WINAPI wow64_NtUserGetMouseMovePointsEx( UINT *args ) ...@@ -2136,7 +2137,7 @@ NTSTATUS WINAPI wow64_NtUserGetMouseMovePointsEx( UINT *args )
if (size != sizeof(MOUSEMOVEPOINT32) || count < 0 || count > ARRAYSIZE( ptin )) if (size != sizeof(MOUSEMOVEPOINT32) || count < 0 || count > ARRAYSIZE( ptin ))
{ {
RtlSetLastWin32Error( ERROR_INVALID_PARAMETER ); set_last_error32( ERROR_INVALID_PARAMETER );
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment