comctl32/tests: Fix a crash on W2K and below.
This commit is contained in:
parent
b0da2a2e48
commit
7e7e27f7ff
|
@ -69,12 +69,13 @@ static int init(void)
|
||||||
pInitCommonControlsEx = (void*)GetProcAddress(hComctl32, "InitCommonControlsEx");
|
pInitCommonControlsEx = (void*)GetProcAddress(hComctl32, "InitCommonControlsEx");
|
||||||
if (!pInitCommonControlsEx)
|
if (!pInitCommonControlsEx)
|
||||||
{
|
{
|
||||||
skip("InitCommonControlsEx() is missing. Skipping the tests\n");
|
win_skip("InitCommonControlsEx() is missing.\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
iccex.dwSize = sizeof(iccex);
|
iccex.dwSize = sizeof(iccex);
|
||||||
iccex.dwICC = ICC_USEREX_CLASSES;
|
/* W2K and below need ICC_INTERNET_CLASSES for the IP Address Control */
|
||||||
|
iccex.dwICC = ICC_INTERNET_CLASSES;
|
||||||
pInitCommonControlsEx(&iccex);
|
pInitCommonControlsEx(&iccex);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue