[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: wineconsole: Improve 64bit compatibility.
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2006-05-30 10:29:25
Message-ID: 871wuberga.fsf () wine ! dyndns ! org
[Download RAW message or body]

Mike McCormack <mike@codeweavers.com> writes:

> @@ -153,7 +153,7 @@ static LRESULT WINAPI WCUSER_FontPreview
>          SetWindowLong(hWnd, 0, 0);
>          break;
>      case WM_GETFONT:
> -        return GetWindowLong(hWnd, 0);
> +        return GetWindowLongPtr(hWnd, 0);
>      case WM_SETFONT:
>          SetWindowLong(hWnd, 0, wParam);
>          if (LOWORD(lParam))

You should fix all the Get/SetWindowLong calls that set the same
value, changing only half will make things worse. You also have to
reserve the proper size in the window class.

-- 
Alexandre Julliard
julliard@winehq.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic