Module: wine
Branch: master
Commit: c9b82600563c3bafaca91e0a0f0f59882734de94
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9b82600563c3bafaca91e0a0…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com>
Date: Thu Nov 20 20:48:12 2008 +0100
comdlg32/tests 1/2: Fix a test failure on XP and W2K3.
---
dlls/comdlg32/tests/filedlg.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c
index e05f5a9..ad2cb45 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);