comctl32/tests: WC_DIALOG is already an INTATOM (PVS-Studio).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9f6bf52ff1
commit
a16a270751
|
@ -300,7 +300,7 @@ static LRESULT CALLBACK hook_proc( int code, WPARAM wp, LPARAM lp )
|
||||||
CBT_CREATEWNDW *c = (CBT_CREATEWNDW *)lp;
|
CBT_CREATEWNDW *c = (CBT_CREATEWNDW *)lp;
|
||||||
|
|
||||||
/* The first dialog created will be the parent dialog */
|
/* The first dialog created will be the parent dialog */
|
||||||
if (!done && c->lpcs->lpszClass == MAKEINTRESOURCEW(WC_DIALOG))
|
if (!done && c->lpcs->lpszClass == (LPWSTR)WC_DIALOG)
|
||||||
{
|
{
|
||||||
old_nav_dialog_proc = (WNDPROC)SetWindowLongPtrW( (HWND)wp, GWLP_WNDPROC, (LONG_PTR)new_nav_dialog_proc );
|
old_nav_dialog_proc = (WNDPROC)SetWindowLongPtrW( (HWND)wp, GWLP_WNDPROC, (LONG_PTR)new_nav_dialog_proc );
|
||||||
done = TRUE;
|
done = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue