comctl32/tests: Call appropriate default procedure for parent window (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-01-10 10:03:13 +03:00 committed by Alexandre Julliard
parent ac59a68162
commit dabad0e98f
1 changed files with 4 additions and 1 deletions

View File

@ -555,7 +555,10 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
}
defwndproc_counter++;
ret = DefWindowProcA(hwnd, message, wParam, lParam);
if (IsWindowUnicode(hwnd))
ret = DefWindowProcW(hwnd, message, wParam, lParam);
else
ret = DefWindowProcA(hwnd, message, wParam, lParam);
defwndproc_counter--;
return ret;