shell32: Fix an incorrect pointer/integer cast on 64-bit and fix check for resource id. (try 2)

Octavian Voicu octavian.voicu at gmail.com
Thu Sep 1 10:10:05 CDT 2011


---
 dlls/shell32/recyclebin.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/recyclebin.c b/dlls/shell32/recyclebin.c
index 39b662a..5b3624c 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(PtrToUlong(verb))
         {
         case IDM_RECYCLEBIN_ERASE:
             DoErase(This);
-- 
1.7.4.1




More information about the wine-patches mailing list