[PATCH 2/5] user32: Add initial out of window procedure slots test

Dmitry Timoshkov dmitry at baikal.ru
Tue Mar 8 18:57:23 CST 2016


Piotr Caban <piotr at codeweavers.com> wrote:

> +static LRESULT WINAPI winproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
> +{
> +    if(!hwnd) {
> +        int *count = (int*)lparam;
> +        (*count)++;
> +    }
> +    return 0;
> +}
> +
> +static LRESULT WINAPI winproc2(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
> +{
> +    return 0;
> +}
...
> +    memset(&wnd_classA, 0, sizeof(wnd_classA));
> +    wnd_classA.lpszClassName = "winproc_test";
> +    wnd_classA.lpfnWndProc = &winproc;

Should be just "winproc" instead of "&winproc"

> +    ok(SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)&winproc2),
> +            "SetWindowLongPtr failed with error %d\n", GetLastError());

Same here.

-- 
Dmitry.



More information about the wine-devel mailing list