dialogex resource loading on sparc

Dmitry Timoshkov dmitry at baikal.ru
Wed Nov 17 18:48:26 CST 2004


"Eric Frias" <efrias at syncad.com> wrote:

> --- windows/dialog.c (.../vendor/wine/current) (revision 29312)
> +++ windows/dialog.c (.../branches/wine/2004.11.16-cvs-update) (revision 29312)
> @@ -378,8 +378,10 @@
>  {
>      const WORD *p = (const WORD *)template;
>  
> -    result->style = GET_DWORD(p); p += 2;
> -    if (result->style == 0xffff0001)  /* DIALOGEX resource */
> +    WORD signature = GET_WORD(p); p++;
> +    WORD dlgver = GET_WORD(p); p++;

This won't compile with older C compilers, you are mixing data declarations
with code.

-- 
Dmitry.




More information about the wine-devel mailing list