Additional fix as suggested in #69
diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h
index 33c34e9..b09157d 100644
--- a/src/vk_mem_alloc.h
+++ b/src/vk_mem_alloc.h
@@ -3725,7 +3725,7 @@
 

 static void VmaWriteMagicValue(void* pData, VkDeviceSize offset)

 {

-#if VMA_DEBUG_MARGIN > 0

+#if VMA_DEBUG_MARGIN > 0 && VMA_DEBUG_DETECT_CORRUPTION

     uint32_t* pDst = (uint32_t*)((char*)pData + offset);

     const size_t numberCount = VMA_DEBUG_MARGIN / sizeof(uint32_t);

     for(size_t i = 0; i < numberCount; ++i, ++pDst)

@@ -3733,13 +3733,13 @@
         *pDst = VMA_CORRUPTION_DETECTION_MAGIC_VALUE;

     }

 #else

-	// no-op

+    // no-op

 #endif

 }

 

 static bool VmaValidateMagicValue(const void* pData, VkDeviceSize offset)

 {

-#if VMA_DEBUG_MARGIN > 0

+#if VMA_DEBUG_MARGIN > 0 && VMA_DEBUG_DETECT_CORRUPTION

     const uint32_t* pSrc = (const uint32_t*)((const char*)pData + offset);

     const size_t numberCount = VMA_DEBUG_MARGIN / sizeof(uint32_t);

     for(size_t i = 0; i < numberCount; ++i, ++pSrc)