(void) ClosePixelCacheOnDisk(cache_info);
*cache_info->cache_filename='\0';
}
- if (OpenPixelCacheOnDisk(cache_info,mode) == MagickFalse)
+ if (OpenPixelCacheOnDisk(cache_info,IOMode) == MagickFalse)
{
RelinquishMagickResource(DiskResource,cache_info->length);
ThrowFileException(exception,CacheError,"UnableToOpenPixelCache",
MagickPathExtent);
cache_info->type=DiskCache;
cache_info->offset=(*offset);
- if (OpenPixelCache(image,cache_info->mode,exception) == MagickFalse)
+ if (OpenPixelCache(image,ReadMode,exception) == MagickFalse)
return(MagickFalse);
*offset+=cache_info->length+page_size-(cache_info->length % page_size);
return(MagickTrue);
cache_info->type=DiskCache;
cache_info->offset=(*offset);
cache_info=(CacheInfo *) image->cache;
- status=OpenPixelCache(image,cache_info->mode,exception);
+ status=OpenPixelCache(image,IOMode,exception);
if (status != MagickFalse)
status=ClonePixelCacheRepository(cache_info,clone_info,exception);
*offset+=cache_info->length+page_size-(cache_info->length % page_size);