Win64 patch 9/13

Dmitry Timoshkov dmitry at codeweavers.com
Mon Jun 19 22:40:39 CDT 2006


"Ge van Geldorp" <ge at gse.nl> wrote:

>  - GWL_HINSTANCE is not defined on Win64, hInstance is documented as not
>    required in CreateWindowEx calls

> -    HINSTANCE hInstance = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);
> +    HINSTANCE hInstance;

Please use

HINSTANCE hInstance = GetWindowLongPtr(hWnd, GWLP_HINSTANCE);

instead.

-- 
Dmitry.



More information about the wine-devel mailing list