16 Jul
2018
16 Jul
'18
2:50 p.m.
Zhiyi Zhang <zzhang(a)codeweavers.com> writes:
@@ -5326,7 +5327,14 @@ BOOL WINAPI GetMenuItemRect(HWND hwnd, HMENU hMenu, UINT uItem, RECT *rect) OffsetRect(rect, menu->items_rect.left, menu->items_rect.top); release_menu_ptr(menu);
- MapWindowPoints(hwnd, 0, (POINT *)rect, 2); + /* Popup menu item draws in the client area */ + if (menu->wFlags & MF_POPUP) MapWindowPoints(hwnd, 0, (POINT *)rect, 2);
You shouldn't access the menu pointer after it has been released. -- Alexandre Julliard julliard(a)winehq.org