(void) CloseClipboard();
memset(clip_data,0,BMP_HEADER_SIZE);
offset=p[0]+BMP_HEADER_SIZE;
+ printf("%d\n", (int) p[32]);
+ offset+=12;
if ((p[0] == 40) && (p[16] == BI_BITFIELDS))
offset+=12;
p-=BMP_HEADER_SIZE;
ThrowWriterException(CoderError,"UnableToWriteImageData");
}
clip_mem=GlobalLock(clip_handle);
- if (clip_handle == (LPVOID) NULL)
+ if (clip_mem == (LPVOID) NULL)
{
(void) GlobalFree((HGLOBAL) clip_handle);
clip_data=RelinquishMagickMemory(clip_data);