From 271a0e848ea6b275624b8714c5d6eea9bc3923f9 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 23 Apr 2017 20:57:55 -0400 Subject: [PATCH] ... --- MagickCore/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 778117dff..61a8d3c63 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -3640,7 +3640,7 @@ static MagickBooleanType OpenPixelCache(Image *image,const MapMode mode, (void) ClosePixelCacheOnDisk(cache_info); *cache_info->cache_filename='\0'; } - if (OpenPixelCacheOnDisk(cache_info,IOMode) == MagickFalse) + if (OpenPixelCacheOnDisk(cache_info,mode) == MagickFalse) { RelinquishMagickResource(DiskResource,cache_info->length); ThrowFileException(exception,CacheError,"UnableToOpenPixelCache", -- 2.40.0