static MagickBooleanType ReadDistributeCacheMetacontent(
SplayTreeInfo *image_registry,int file,const MagickSizeType session_key)
{
+ const unsigned char
+ *metacontent;
+
ExceptionInfo
*exception;
exception=DestroyExceptionInfo(exception);
if (p == (const Quantum *) NULL)
return(MagickFalse);
- count=write(file,p,length);
+ metacontent=GetVirtualMetacontent(image);
+ count=write(file,metacontent,length);
if (count != (ssize_t) length)
return(MagickFalse);
return(MagickTrue);
count;
unsigned char
- buffer[MaxTextExtent];
+ buffer[MaxTextExtent],
+ *metacontent;
image=(Image *) GetValueFromSplayTree(image_registry,(const void *)
session_key);
exception=DestroyExceptionInfo(exception);
if (q == (Quantum *) NULL)
return(MagickFalse);
- count=read(file,q,length);
+ metacontent=GetAuthenticMetacontent(image);
+ count=read(file,metacontent,length);
if (count != (ssize_t) length)
return(MagickFalse);
status=SyncAuthenticPixels(image,exception);