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

This commit is contained in:
Saulius Krasuckas 2006-01-13 14:08:45 +01:00 committed by Alexandre Julliard
parent 2878d99216
commit 7a044cb365
1 changed files with 6 additions and 4 deletions

View File

@ -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)