From c9b82600563c3bafaca91e0a0f0f59882734de94 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Thu, 20 Nov 2008 20:48:12 +0100 Subject: [PATCH] comdlg32/tests 1/2: Fix a test failure on XP and W2K3. --- dlls/comdlg32/tests/filedlg.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c index e05f5a93ce0..ad2cb456b3a 100644 --- a/dlls/comdlg32/tests/filedlg.c +++ b/dlls/comdlg32/tests/filedlg.c @@ -187,6 +187,11 @@ static UINT CALLBACK create_view_window2_hook(HWND dlg, UINT msg, WPARAM wParam, hr = IShellView2_DestroyViewWindow(shell_view2); ok(SUCCEEDED(hr), "DestroyViewWindow returned %#x\n", hr); + /* XP and W2K3 need this. On Win9x and W2K the call to DestroyWindow() fails and has + * no side effects. NT4 doesn't get here. (FIXME: Vista doesn't get here yet). + */ + DestroyWindow(view_params.hwndView); + view_params.pvid = &VID_Details; hr = IShellView2_CreateViewWindow2(shell_view2, &view_params); ok(SUCCEEDED(hr), "CreateViewWindow2 returned %#x\n", hr);