Commit c9b82600 authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

comdlg32/tests 1/2: Fix a test failure on XP and W2K3.

parent 3bb44946
...@@ -187,6 +187,11 @@ static UINT CALLBACK create_view_window2_hook(HWND dlg, UINT msg, WPARAM wParam, ...@@ -187,6 +187,11 @@ static UINT CALLBACK create_view_window2_hook(HWND dlg, UINT msg, WPARAM wParam,
hr = IShellView2_DestroyViewWindow(shell_view2); hr = IShellView2_DestroyViewWindow(shell_view2);
ok(SUCCEEDED(hr), "DestroyViewWindow returned %#x\n", hr); 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; view_params.pvid = &VID_Details;
hr = IShellView2_CreateViewWindow2(shell_view2, &view_params); hr = IShellView2_CreateViewWindow2(shell_view2, &view_params);
ok(SUCCEEDED(hr), "CreateViewWindow2 returned %#x\n", hr); ok(SUCCEEDED(hr), "CreateViewWindow2 returned %#x\n", hr);
......
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