]> Creatis software - clitk.git/blobdiff - utilities/CxImage/ximaenc.cpp
With ITK 5.0, itk::ProcessObject::VerifyInputInformation are now declared const
[clitk.git] / utilities / CxImage / ximaenc.cpp
index 8edfbfcd6d5521a681372eb67203a91b26f9d4a5..4f095feb2a42dac9774287f8c1c10822fa2a2002 100644 (file)
@@ -996,7 +996,7 @@ bool CxImage::CheckFormat(CxFile * hFile, DWORD imagetype)
 ////////////////////////////////////////////////////////////////////////////////
 bool CxImage::CheckFormat(BYTE * buffer, DWORD size, DWORD imagetype)
 {
-       if (buffer==NULL || size==NULL){
+       if (buffer==NULL || size==0){
                strcpy(info.szLastError,"invalid or empty buffer");
                return false;
        }