shell32: Fix cast in RecycleBinMenu_InvokeCommand
Jay Yang
jkelleyy at gmail.com
Thu Jul 14 12:18:04 CDT 2011
On 07/14/2011 09:50 AM, Alexandre Julliard wrote:
> Jay Yang <jkelleyy at gmail.com> writes:
>
>> @@ -240,7 +240,7 @@ static HRESULT WINAPI RecycleBinMenu_InvokeCommand(IContextMenu2 *iface,
>> LPCSTR verb = pici->lpVerb;
>> if(!HIWORD(verb))
>> {
>> - switch((UINT)verb)
>> + switch((UINT_PTR)verb)
> Actually the HIWORD() is more problematic.
>
What's the best way to do this then. Since the msdn documentation on this assumes that pointers are
32 bit, which is obviously wrong. Should I do something like "if((verb&0xFFFF)==verb)"?
--
Jay Yang
More information about the wine-devel
mailing list