X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=utilities%2FCxImage%2Fximaenc.cpp;h=4f095feb2a42dac9774287f8c1c10822fa2a2002;hb=0696ca91b91a1d37a8bac3fe81a9004357c209f9;hp=8edfbfcd6d5521a681372eb67203a91b26f9d4a5;hpb=441099a730f593b2226f400afef8c756b05efc69;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; }