uxtheme: Fix the system tests so they pass on Vista.

This commit is contained in:
Reece H. Dunn 2008-02-07 08:12:25 +00:00 committed by Alexandre Julliard
parent 05c7174909
commit d10eaa5a89
1 changed files with 4 additions and 2 deletions

View File

@ -417,8 +417,10 @@ static void test_GetCurrentThemeName(void)
/* Given number of characters for the theme name is too large */
SetLastError(0xdeadbeef);
hRes = pGetCurrentThemeName(currentTheme, sizeof(currentTheme), NULL, 0, NULL, 0);
todo_wine
ok( hRes == E_POINTER, "Expected E_POINTER, got 0x%08x\n", hRes);
if (bThemeActive)
ok( hRes == E_POINTER || hRes == S_OK, "Expected E_POINTER or S_OK, got 0x%08x\n", hRes);
else
ok( hRes == E_PROP_ID_UNSUPPORTED, "Expected E_PROP_ID_UNSUPPORTED, got 0x%08x\n", hRes);
ok( GetLastError() == 0xdeadbeef,
"Expected 0xdeadbeef, got 0x%08x\n",
GetLastError());