Thanks. I should have caught that. v3 sent.
On Mon 7 16 22:50, Alexandre Julliard wrote:
Zhiyi Zhang zzhang@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.