more J2c tests for windows

This commit is contained in:
phr0z3nt04st
2010-07-02 23:34:58 -05:00
parent 7d30cea315
commit 093c20cf4b
2 changed files with 12 additions and 9 deletions

View File

@@ -478,7 +478,7 @@ BOOL LLImageJ2C::validate(U8 *data, U32 file_size)
if ( res )
{
// Check to make sure that this instance has been initialized with data
if (!getData() || (0 == getDataSize()))
if (!getData() || (getDataSize() < 16))
{
setLastError("LLImageJ2C uninitialized");
res = FALSE;