user32/tests: Don't treat a button as a dialog (valgrind)

André Hentschel nerv at dawncrow.de
Thu Jul 28 14:47:49 CDT 2011


---
 dlls/user32/tests/dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/tests/dialog.c b/dlls/user32/tests/dialog.c
index 8e4ffb5..b7c3330 100644
--- a/dlls/user32/tests/dialog.c
+++ b/dlls/user32/tests/dialog.c
@@ -601,7 +601,7 @@ static void test_WM_NEXTDLGCTL(void)
      */
 
     DefDlgProcA( g_hwndTestDlg, DM_SETDEFID, IDCANCEL, 0 );
-    DefDlgProcA( g_hwndTestDlgBut1, BM_SETSTYLE, BS_DEFPUSHBUTTON, FALSE );
+    SendMessageA( g_hwndTestDlgBut1, BM_SETSTYLE, BS_DEFPUSHBUTTON, FALSE );
     dwVal = DefDlgProcA(g_hwndTestDlg, DM_GETDEFID, 0, 0);
 
     ok ( IDCANCEL == (LOWORD(dwVal)), "Did not set default ID\n" );
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list