summaryrefslogtreecommitdiff
path: root/testbed/testcms2.c
diff options
context:
space:
mode:
Diffstat (limited to 'testbed/testcms2.c')
-rw-r--r--testbed/testcms2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testbed/testcms2.c b/testbed/testcms2.c
index e7f227a..0209ac0 100644
--- a/testbed/testcms2.c
+++ b/testbed/testcms2.c
@@ -8096,7 +8096,6 @@ int CheckProofingIntersection(void)
cmsHPROFILE profile_null, hnd1, hnd2;
cmsHTRANSFORM transform;
-
hnd1 = cmsCreate_sRGBProfile();
hnd2 = Create_AboveRGB();
@@ -8117,10 +8116,10 @@ int CheckProofingIntersection(void)
cmsCloseProfile(profile_null);
// Failed?
- if (transform == NULL) return 0;
+ if (transform == NULL) return 1;
cmsDeleteTransform(transform);
- return 1;
+ return 0;
}
// --------------------------------------------------------------------------------------------------
@@ -8541,6 +8540,7 @@ int main(int argc, char* argv[])
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif
+
// First of all, check for the right header
if (cmsGetEncodedCMMversion() != LCMS_VERSION) {
Die("Oops, you are mixing header and shared lib!\nHeader version reports to be '%d' and shared lib '%d'\n", LCMS_VERSION, cmsGetEncodedCMMversion());