comctl32/tests: Fix a crash on W2K and below.

This commit is contained in:
Paul Vriens 2009-03-24 17:09:46 +01:00 committed by Alexandre Julliard
parent b0da2a2e48
commit 7e7e27f7ff
1 changed files with 3 additions and 2 deletions

View File

@ -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;