Skip to content

Commit a66e449

Browse files
q4aeagleivg
authored andcommitted
Compare size with 0, not NULL
1 parent ba7e3d3 commit a66e449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Externals/cximage/ximaenc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ bool CxImage::CheckFormat(CxFile * hFile, DWORD imagetype)
996996
////////////////////////////////////////////////////////////////////////////////
997997
bool CxImage::CheckFormat(BYTE * buffer, DWORD size, DWORD imagetype)
998998
{
999-
if (buffer==NULL || size==NULL){
999+
if (buffer==NULL || size==0){
10001000
strcpy(info.szLastError,"invalid or empty buffer");
10011001
return false;
10021002
}

0 commit comments

Comments
 (0)