9 Mar
2016
9 Mar
'16
12:57 a.m.
Piotr Caban <piotr(a)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.