uxtheme: Fixed the todo blocks in the IsThemed tests when theming is inactive.
This commit is contained in:
parent
20d8e46858
commit
d85c3e7c72
@ -566,6 +566,7 @@ BOOL WINAPI IsAppThemed(void)
|
|||||||
BOOL WINAPI IsThemeActive(void)
|
BOOL WINAPI IsThemeActive(void)
|
||||||
{
|
{
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
SetLastError(ERROR_SUCCESS);
|
||||||
return bThemeActive;
|
return bThemeActive;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,10 +85,9 @@ static void test_IsThemed(void)
|
|||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
bThemeActive = pIsThemeActive();
|
bThemeActive = pIsThemeActive();
|
||||||
trace("Theming is %s\n", (bThemeActive) ? "active" : "inactive");
|
trace("Theming is %s\n", (bThemeActive) ? "active" : "inactive");
|
||||||
todo_wine
|
ok( GetLastError() == ERROR_SUCCESS,
|
||||||
ok( GetLastError() == ERROR_SUCCESS,
|
"Expected ERROR_SUCCESS, got 0x%08x\n",
|
||||||
"Expected ERROR_SUCCESS, got 0x%08x\n",
|
GetLastError());
|
||||||
GetLastError());
|
|
||||||
|
|
||||||
/* This test is not themed */
|
/* This test is not themed */
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
@ -101,10 +100,9 @@ static void test_IsThemed(void)
|
|||||||
/* Although Wine currently returns FALSE, the logic behind it is wrong. It is not a todo_wine though in the testing sense */
|
/* Although Wine currently returns FALSE, the logic behind it is wrong. It is not a todo_wine though in the testing sense */
|
||||||
ok( bAppThemed == FALSE, "Expected FALSE as this test executable is not (yet) themed.\n");
|
ok( bAppThemed == FALSE, "Expected FALSE as this test executable is not (yet) themed.\n");
|
||||||
|
|
||||||
todo_wine
|
ok( GetLastError() == ERROR_SUCCESS,
|
||||||
ok( GetLastError() == ERROR_SUCCESS,
|
"Expected ERROR_SUCCESS, got 0x%08x\n",
|
||||||
"Expected ERROR_SUCCESS, got 0x%08x\n",
|
GetLastError());
|
||||||
GetLastError());
|
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
bTPDefined = pIsThemePartDefined(NULL, 0 , 0);
|
bTPDefined = pIsThemePartDefined(NULL, 0 , 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user