msvideo: Forward MCIWndCreate16 to MCIWndCreateA (2nd)

Alexandre Julliard julliard at winehq.org
Sun Aug 22 14:23:41 CDT 2010


Stefan Leichter <Stefan.Leichter at camline.com> writes:

> This was just a try to fix bug 23866.
>
> call 32 bit function from 16 bit and back is still some "black magic" for me. 
> Therefore i searched the wine sources for a similar case. Most/all places to 
> convert HINSTANCE16 to HINSTANCE i found are dlls/user.exe16/window.c . Looks 
> like i picked a "wrong" code fragment from there.
>
> Should i send a new patch only using HINSTANCE_32(GetExePtr( hinst16 )) ?

No, that's wrong too. If the 16-bit code really needs a valid instance
you have to pass it unmodified, otherwise you may just as well pass 0.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list