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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 19 14:28:47 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 682679b07cab0a08ddcc23185991b0d8e98fb98c
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=682679b07cab0a08ddcc23185991b0d8e98fb98c

Author: Paul Vriens <Paul.Vriens at xs4all.nl>
Date:   Mon Jun 19 17:49:36 2006 +0200

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

---

 dlls/uxtheme/tests/system.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c
index fb0e9a2..5c5fa31 100644
--- a/dlls/uxtheme/tests/system.c
+++ b/dlls/uxtheme/tests/system.c
@@ -89,8 +89,8 @@ static void test_OpenThemeData(void)
     SetLastError(0xdeadbeef);
     bThemeActive = pIsThemeActive();
     todo_wine
-        ok( GetLastError() == S_OK,
-            "Expected S_OK, got 0x%08lx\n",
+        ok( GetLastError() == ERROR_SUCCESS,
+            "Expected ERROR_SUCCESS, got 0x%08lx\n",
             GetLastError());
 
     /* All NULL */
@@ -117,8 +117,8 @@ static void test_OpenThemeData(void)
     {
         ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n");
         todo_wine
-            ok( GetLastError() == S_OK,
-                "Expected S_OK, got 0x%08lx\n",
+            ok( GetLastError() == ERROR_SUCCESS,
+                "Expected ERROR_SUCCESS, got 0x%08lx\n",
                 GetLastError());
     }
     else
@@ -170,16 +170,16 @@ static void test_OpenThemeData(void)
     hTheme = pOpenThemeData(hWnd, szButtonClassList);
     ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n");
     todo_wine
-        ok( GetLastError() == S_OK,
-            "Expected S_OK, got 0x%08lx\n",
+        ok( GetLastError() == ERROR_SUCCESS,
+            "Expected ERROR_SUCCESS, got 0x%08lx\n",
             GetLastError());
 
     SetLastError(0xdeadbeef);
     hTheme = pOpenThemeData(hWnd, szClassList);
     ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n");
     todo_wine
-        ok( GetLastError() == S_OK,
-            "Expected S_OK, got 0x%08lx\n",
+        ok( GetLastError() == ERROR_SUCCESS,
+            "Expected ERROR_SUCCESS, got 0x%08lx\n",
             GetLastError());
 }
 




More information about the wine-cvs mailing list