mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +01:00
- fix for 0 sized gif images too
- fixed wrong test for 0 size in nxpm.c
This commit is contained in:
@@ -81,10 +81,10 @@ RLoadTIFF(RContext *context, char *file, int index)
|
||||
TIFFClose(tif);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* read data */
|
||||
ptr = data = (uint32*)_TIFFmalloc(width * height * sizeof(uint32));
|
||||
|
||||
|
||||
if (!data) {
|
||||
RErrorCode = RERR_NOMEMORY;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user