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