Commits

Fredrik Lundh  committed c6b4f35

Build fixes.

  • Participants
  • Parent commits aa8c668
  • Branches cms

Comments (0)

Files changed (1)

File _imagingcms.c

 static DWORD 
 findLCMStype(char* PILmode)
 {
-  char *errorMsg = NULL;
-
   if (strcmp(PILmode, "RGB") == 0) {
     return TYPE_RGBA_8;
   }
 
   if (idOut != 0L) {
     imOut = (Imaging) idOut;
-  }
+  } else
+    imOut = NULL;
 
   cmsErrorAction(LCMS_ERROR_IGNORE);
 
   cmsHPROFILE hProfile;
   int iColorTemp = 0;
   LPcmsCIExyY whitePoint = NULL;
-  BOOL result;
+  LCMSBOOL result;
 
   if (!PyArg_ParseTuple(args, "s|i:createProfile", &sColorSpace, &iColorTemp))
     return NULL;
   if (strcmp(sColorSpace, "LAB") == 0) {
     if (iColorTemp > 0) {
       result = cmsWhitePointFromTemp(iColorTemp, whitePoint);
-      if (result == FALSE) {
+      if (!result) {
 	PyErr_SetString(PyExc_ValueError, "ERROR: Could not calculate white point from color temperature provided, must be integer in degrees Kelvin");
 	return NULL;
       }
 static PyObject *
 cms_profile_is_intent_supported(CmsProfileObject *self, PyObject *args)
 {
-  BOOL result;
+  LCMSBOOL result;
 
   int intent;
   int direction;