From 776e27834d97eb6886e855fd5c90585eafdcf83f Mon Sep 17 00:00:00 2001 From: Octavian Voicu Date: Thu, 1 Sep 2011 18:10:05 +0300 Subject: [PATCH] shell32: Fix an incorrect pointer/integer cast on 64-bit and fix check for resource id. --- dlls/shell32/recyclebin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/recyclebin.c b/dlls/shell32/recyclebin.c index 39b662abc3..eec9e00c87 100644 --- a/dlls/shell32/recyclebin.c +++ b/dlls/shell32/recyclebin.c @@ -238,9 +238,9 @@ static HRESULT WINAPI RecycleBinMenu_InvokeCommand(IContextMenu2 *iface, { RecycleBinMenu *This = impl_from_IContextMenu2(iface); LPCSTR verb = pici->lpVerb; - if(!HIWORD(verb)) + if(IS_INTRESOURCE(verb)) { - switch((UINT)verb) + switch(LOWORD(verb)) { case IDM_RECYCLEBIN_ERASE: DoErase(This); -- 2.32.0.93.g670b81a890