uxtheme/tests: Change S_OK to the more appropriate ERROR_SUCCESS.

This commit is contained in:
Paul Vriens 2006-06-19 17:49:36 +02:00 committed by Alexandre Julliard
parent fa823d2fb8
commit 682679b07c
1 changed files with 8 additions and 8 deletions

View File

@ -89,8 +89,8 @@ static void test_OpenThemeData(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
bThemeActive = pIsThemeActive(); bThemeActive = pIsThemeActive();
todo_wine todo_wine
ok( GetLastError() == S_OK, ok( GetLastError() == ERROR_SUCCESS,
"Expected S_OK, got 0x%08lx\n", "Expected ERROR_SUCCESS, got 0x%08lx\n",
GetLastError()); GetLastError());
/* All NULL */ /* All NULL */
@ -117,8 +117,8 @@ static void test_OpenThemeData(void)
{ {
ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n"); ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n");
todo_wine todo_wine
ok( GetLastError() == S_OK, ok( GetLastError() == ERROR_SUCCESS,
"Expected S_OK, got 0x%08lx\n", "Expected ERROR_SUCCESS, got 0x%08lx\n",
GetLastError()); GetLastError());
} }
else else
@ -170,16 +170,16 @@ static void test_OpenThemeData(void)
hTheme = pOpenThemeData(hWnd, szButtonClassList); hTheme = pOpenThemeData(hWnd, szButtonClassList);
ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n"); ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n");
todo_wine todo_wine
ok( GetLastError() == S_OK, ok( GetLastError() == ERROR_SUCCESS,
"Expected S_OK, got 0x%08lx\n", "Expected ERROR_SUCCESS, got 0x%08lx\n",
GetLastError()); GetLastError());
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
hTheme = pOpenThemeData(hWnd, szClassList); hTheme = pOpenThemeData(hWnd, szClassList);
ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n"); ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n");
todo_wine todo_wine
ok( GetLastError() == S_OK, ok( GetLastError() == ERROR_SUCCESS,
"Expected S_OK, got 0x%08lx\n", "Expected ERROR_SUCCESS, got 0x%08lx\n",
GetLastError()); GetLastError());
} }