Commit b46f8b1b authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

comdlg32/tests: fix a few test failures on Vista and higher.

parent 6986d97f
...@@ -457,7 +457,7 @@ static LONG_PTR WINAPI test_ok_wndproc(HWND dlg, UINT msg, WPARAM wParam, LPARAM ...@@ -457,7 +457,7 @@ static LONG_PTR WINAPI test_ok_wndproc(HWND dlg, UINT msg, WPARAM wParam, LPARAM
msgFILEOKSTRING = RegisterWindowMessageA( FILEOKSTRING); msgFILEOKSTRING = RegisterWindowMessageA( FILEOKSTRING);
} }
if( msg == WM_NOTIFY) { if( msg == WM_NOTIFY) {
if(((LPNMHDR)lParam)->code == CDN_INITDONE) { if(((LPNMHDR)lParam)->code == CDN_FOLDERCHANGE) {
SetTimer( dlg, 0, 100, 0); SetTimer( dlg, 0, 100, 0);
PostMessage( parent, WM_COMMAND, IDOK, 0); PostMessage( parent, WM_COMMAND, IDOK, 0);
return FALSE; return FALSE;
...@@ -520,9 +520,9 @@ static void test_ok(void) ...@@ -520,9 +520,9 @@ static void test_ok(void)
: (LPOFNHOOKPROC) test_ok_wndproc; : (LPOFNHOOKPROC) test_ok_wndproc;
ret = GetOpenFileNameA(&ofn); ret = GetOpenFileNameA(&ofn);
ok( ok_testcases[i].expclose == ok_testcases[i].actclose, ok( ok_testcases[i].expclose == ok_testcases[i].actclose,
"Open File dialog should %shave closed.\n", "testid %d: Open File dialog should %shave closed.\n", i,
ok_testcases[i].expclose ? "" : "NOT "); ok_testcases[i].expclose ? "" : "NOT ");
ok(ret == ok_testcases[i].expclose, "GetOpenFileName returned %#x\n", ret); ok(ret == ok_testcases[i].expclose, "testid %d: GetOpenFileName returned %#x\n", i, ret);
ret = CommDlgExtendedError(); ret = CommDlgExtendedError();
ok(!ret, "CommDlgExtendedError returned %#x\n", ret); ok(!ret, "CommDlgExtendedError returned %#x\n", ret);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment