]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/795
authorCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 13:49:03 +0000 (09:49 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 13:49:03 +0000 (09:49 -0400)
MagickCore/opencl.c

index 268652c72fd9b3666f121d84a5806a054fe70354..e2d04010035ed4bed577cf99bcfea7c39521d546 100644 (file)
@@ -2320,7 +2320,7 @@ static void LoadOpenCLDevices(MagickCLEnv clEnv)
 
       openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_VENDOR,0,NULL,
         &length);
-      device->vendor_name=AcquireQuantumMemory(length,
+      device->vendor_name=AcquireCriticalMemory(length*
         sizeof(*device->vendor_name));
       openCL_library->clGetPlatformInfo(platforms[i],CL_PLATFORM_VENDOR,length,
         device->vendor_name,NULL);