X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=utilities%2FCxImage%2Fximaenc.cpp;h=4f095feb2a42dac9774287f8c1c10822fa2a2002;hb=067d2b18f8a2995a69c986f9595acbe968bc0ce9;hp=8edfbfcd6d5521a681372eb67203a91b26f9d4a5;hpb=fc2b78aedceae6ebeb0dbe8aae649bc84fd8e235;p=clitk.git diff --git a/utilities/CxImage/ximaenc.cpp b/utilities/CxImage/ximaenc.cpp index 8edfbfc..4f095fe 100644 --- a/utilities/CxImage/ximaenc.cpp +++ b/utilities/CxImage/ximaenc.cpp @@ -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; }