]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 24 Jun 2010 15:15:04 +0000 (15:15 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 24 Jun 2010 15:15:04 +0000 (15:15 +0000)
magick/semaphore.c

index e730cf26c8d0ae73cb73b210583b337bcf3fd6ea..5a5cb935708e04619d1345eb33af59e9529e6670 100644 (file)
@@ -168,7 +168,13 @@ MagickExport SemaphoreInfo *AllocateSemaphoreInfo(void)
       }
   }
 #elif defined(MAGICKCORE_HAVE_WINTHREADS)
-  InitializeCriticalSection(&semaphore_info->mutex);
+  status=InitializeCriticalSection(&semaphore_info->mutex,0x0400);
+  if (status == 0)
+    {
+      errno=status;
+      ThrowFatalException(ResourceLimitFatalError,
+        "UnableToInitializeSemaphore");
+     }
 #endif
   semaphore_info->id=GetMagickThreadId();
   semaphore_info->reference_count=0;