Saulius Krasuckas : mscms: Make two checks more strict in the case of success.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jan 13 07:31:21 CST 2006


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

Author: Saulius Krasuckas <saulius.krasuckas at gmail.com>
Date:   Fri Jan 13 14:08:45 2006 +0100

mscms: Make two checks more strict in the case of success.

---

 dlls/mscms/tests/profile.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c
index 6e82fb3..14cfa5a 100644
--- a/dlls/mscms/tests/profile.c
+++ b/dlls/mscms/tests/profile.c
@@ -505,10 +505,11 @@ do {                                    
 #define test_GSCSPA(pMachName, dwProfID, pProfName, pdwSz, dwSz, GLE_OK)        \
 do {                                                                            \
     size = dwSz;                                                                \
-    SetLastError(0);                                                            \
+    SetLastError(0xfaceabad);                                                   \
     ret = pGetStandardColorSpaceProfileA(pMachName, dwProfID, pProfName, pdwSz);\
     GLE = GetLastError();                                                       \
-    ok( (!ret && GLE_OK) || (ret && !lstrcmpiA( pProfName, "" )),               \
+    ok( (!ret && GLE_OK) ||                                                     \
+        (ret && !lstrcmpiA( pProfName, "" ) && GLE == 0xfaceabad),              \
         "GetStandardColorSpaceProfileA() returns %d (GLE=%ld)\n", ret, GLE );   \
 } while (0)
 
@@ -582,10 +583,11 @@ do {                                    
 #define test_GSCSPW(pMachName, dwProfID, pProfName, pdwSz, dwSz, GLE_OK)        \
 do {                                                                            \
     size = dwSz;                                                                \
-    SetLastError(0);                                                            \
+    SetLastError(0xfaceabad);                                                   \
     ret = pGetStandardColorSpaceProfileW(pMachName, dwProfID, pProfName, pdwSz);\
     GLE = GetLastError();                                                       \
-    ok( (!ret && GLE_OK) || (ret && !lstrcmpiW( pProfName, emptyW )),           \
+    ok( (!ret && GLE_OK) ||                                                     \
+        (ret && !lstrcmpiW( pProfName, emptyW ) && GLE == 0xfaceabad),          \
         "GetStandardColorSpaceProfileA() returns %d (GLE=%ld)\n", ret, GLE );   \
 } while (0)
 




More information about the wine-cvs mailing list