]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/806
authorCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 14:27:34 +0000 (10:27 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 30 Sep 2017 14:27:34 +0000 (10:27 -0400)
MagickCore/nt-base.c

index 2cf9f02df3ab8704542d1434507432b1b8f9eb05..7d45b97ab8025b65d87054c371f82c406049d6a0 100644 (file)
@@ -1787,7 +1787,7 @@ MagickPrivate DIR *NTOpenDirectory(const char *path)
   if (wcsncat(file_specification,(const wchar_t*) DirectorySeparator,
         MagickPathExtent-wcslen(file_specification)-1) == (wchar_t*) NULL)
     return((DIR *) NULL);
-  entry=(DIR *) AcquireMagickMemory(sizeof(DIR));
+  entry=(DIR *) AcquireCriticalMemory(sizeof(DIR));
   if (entry != (DIR *) NULL)
     {
       entry->firsttime=TRUE;