]> granicus.if.org Git - imagemagick/commitdiff
Don't call GetShortPathNameW when NTLongPathsEnabled returns true.
authorDirk Lemstra <dirk@lemstra.org>
Sun, 2 Jun 2019 12:59:15 +0000 (14:59 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Sun, 2 Jun 2019 13:08:04 +0000 (15:08 +0200)
MagickCore/utility-private.h

index c2f06e909244a458defe2bab6c143e0461456172..28c727d1019b4778a419278b110252774385fcab 100644 (file)
@@ -68,7 +68,7 @@ static inline wchar_t *create_wchar_path(const char *utf8)
     *wideChar;
 
   count=MultiByteToWideChar(CP_UTF8,0,utf8,-1,NULL,0);
-  if (count > MAX_PATH)
+  if ((count > MAX_PATH) && (NTLongPathsEnabled() == MagickFalse))
     {
       char
         buffer[MagickPathExtent];