comctl32/header: Add XP SP3 workaround for Header tests. Fix window handle leak.
This commit is contained in:
parent
cbe960f1e9
commit
fffb41f6a6
@ -1701,6 +1701,7 @@ START_TEST(header)
|
|||||||
{
|
{
|
||||||
HWND parent_hwnd;
|
HWND parent_hwnd;
|
||||||
ULONG_PTR ctx_cookie;
|
ULONG_PTR ctx_cookie;
|
||||||
|
HWND hwnd;
|
||||||
|
|
||||||
if (!init())
|
if (!init())
|
||||||
return;
|
return;
|
||||||
@ -1732,6 +1733,22 @@ START_TEST(header)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this is a XP SP3 failure workaround */
|
||||||
|
hwnd = CreateWindowExA(0, WC_HEADER, NULL,
|
||||||
|
WS_CHILD|WS_BORDER|WS_VISIBLE|HDS_BUTTONS|HDS_HORZ,
|
||||||
|
0, 0, 100, 100,
|
||||||
|
parent_hwnd, NULL, GetModuleHandleA(NULL), NULL);
|
||||||
|
|
||||||
|
if (!IsWindow(hwnd))
|
||||||
|
{
|
||||||
|
win_skip("FIXME: failed to create Header window.\n");
|
||||||
|
unload_v6_module(ctx_cookie);
|
||||||
|
DestroyWindow(parent_hwnd);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
DestroyWindow(hwnd);
|
||||||
|
|
||||||
/* comctl32 version 6 tests start here */
|
/* comctl32 version 6 tests start here */
|
||||||
test_hdf_fixedwidth(parent_hwnd);
|
test_hdf_fixedwidth(parent_hwnd);
|
||||||
test_hds_nosizing(parent_hwnd);
|
test_hds_nosizing(parent_hwnd);
|
||||||
|
@ -4071,6 +4071,7 @@ START_TEST(listview)
|
|||||||
{
|
{
|
||||||
win_skip("FIXME: failed to create ListView window.\n");
|
win_skip("FIXME: failed to create ListView window.\n");
|
||||||
unload_v6_module(ctx_cookie);
|
unload_v6_module(ctx_cookie);
|
||||||
|
DestroyWindow(hwndparent);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user