diff --git a/ide/vs2017/mimalloc-override.vcxproj b/ide/vs2017/mimalloc-override.vcxproj
index 6c1020ea..3ca8158a 100644
--- a/ide/vs2017/mimalloc-override.vcxproj
+++ b/ide/vs2017/mimalloc-override.vcxproj
@@ -97,25 +97,18 @@
true
true
../../include
- MI_SHARED_LIB;MI_SHARED_LIB_EXPORT;MI_MALLOC_OVERRIDE;_MBCS;%(PreprocessorDefinitions);
+ MI_SHARED_LIB;MI_SHARED_LIB_EXPORT;MI_MALLOC_OVERRIDE;%(PreprocessorDefinitions);
MultiThreadedDebugDLL
false
Default
-
-
-
-
-
-
-
-
../../bin/mimalloc-redirect32.lib;%(AdditionalDependencies)
+ Default
@@ -125,26 +118,25 @@
true
true
../../include
- MI_SHARED_LIB;MI_SHARED_LIB_EXPORT;MI_MALLOC_OVERRIDE;_MBCS;%(PreprocessorDefinitions);
+ MI_SHARED_LIB;MI_SHARED_LIB_EXPORT;MI_MALLOC_OVERRIDE;%(PreprocessorDefinitions);
MultiThreadedDebugDLL
false
Default
-
-
-
-
-
-
-
-
../../bin/mimalloc-redirect.lib;%(AdditionalDependencies)
+ Default
+
+ COPY /Y $(SolutionDir)..\..\bin\mimalloc-redirect.dll $(OutputPath)
+
+
+ copy mimalloc-redirect.dll to the output directory
+
@@ -155,7 +147,7 @@
true
true
../../include
- MI_SHARED_LIB;MI_SHARED_LIB_EXPORT;MI_MALLOC_OVERRIDE;_MBCS;%(PreprocessorDefinitions);NDEBUG
+ MI_SHARED_LIB;MI_SHARED_LIB_EXPORT;MI_MALLOC_OVERRIDE;%(PreprocessorDefinitions);NDEBUG
AssemblyAndSourceCode
$(IntDir)
false
@@ -168,15 +160,8 @@
../../bin/mimalloc-redirect32.lib;%(AdditionalDependencies)
+ Default
-
-
-
-
-
-
-
-
@@ -187,7 +172,7 @@
true
true
../../include
- MI_SHARED_LIB;MI_SHARED_LIB_EXPORT;MI_MALLOC_OVERRIDE;_MBCS;%(PreprocessorDefinitions);NDEBUG
+ MI_SHARED_LIB;MI_SHARED_LIB_EXPORT;MI_MALLOC_OVERRIDE;%(PreprocessorDefinitions);NDEBUG
AssemblyAndSourceCode
$(IntDir)
false
@@ -200,14 +185,13 @@
../../bin/mimalloc-redirect.lib;%(AdditionalDependencies)
+ Default
-
-
+ COPY /Y $(SolutionDir)..\..\bin\mimalloc-redirect.dll $(OutputPath)
-
-
+ copy mimalloc-redirect.dll to the output directory
@@ -224,12 +208,6 @@
false
false
-
- true
- true
- true
- true
-
true
true
diff --git a/ide/vs2017/mimalloc-override.vcxproj.filters b/ide/vs2017/mimalloc-override.vcxproj.filters
index df0bf5ed..ffabddac 100644
--- a/ide/vs2017/mimalloc-override.vcxproj.filters
+++ b/ide/vs2017/mimalloc-override.vcxproj.filters
@@ -67,8 +67,5 @@
Source Files
-
- Source Files
-
\ No newline at end of file
diff --git a/ide/vs2017/mimalloc.vcxproj b/ide/vs2017/mimalloc.vcxproj
index 3310e642..a8cb7566 100644
--- a/ide/vs2017/mimalloc.vcxproj
+++ b/ide/vs2017/mimalloc.vcxproj
@@ -217,12 +217,6 @@
true
true
-
- true
- true
- true
- true
-
true
true
@@ -249,9 +243,9 @@
-
-
-
+
+
+
diff --git a/ide/vs2017/mimalloc.vcxproj.filters b/ide/vs2017/mimalloc.vcxproj.filters
index bffbb57f..28d94e99 100644
--- a/ide/vs2017/mimalloc.vcxproj.filters
+++ b/ide/vs2017/mimalloc.vcxproj.filters
@@ -41,9 +41,6 @@
Source Files
-
- Source Files
-
Source Files
@@ -64,13 +61,13 @@
Header Files
-
+
Header Files
-
+
Header Files
-
+
Header Files
diff --git a/src/alloc-override.c b/src/alloc-override.c
index fba0c199..345d396c 100644
--- a/src/alloc-override.c
+++ b/src/alloc-override.c
@@ -9,8 +9,8 @@ terms of the MIT license. A copy of the license can be found in the file
#error "this file should be included from 'alloc.c' (so aliases can work)"
#endif
-#if defined(MI_MALLOC_OVERRIDE) && defined(_WIN32) && !(defined(MI_SHARED_LIB) && defined(_DLL))
-#error "It is only possible to override malloc on Windows when building as a DLL (and linking the C runtime as a DLL)"
+#if defined(MI_MALLOC_OVERRIDE) && defined(_WIN32) && !(defined(MI_SHARED_LIB) && defined(_DLL) && defined(_WIN64))
+#error "It is only possible to override "malloc" on Windows when building as a 64-bit DLL (and linking the C runtime as a DLL)"
#endif
#if defined(MI_MALLOC_OVERRIDE) && !defined(_WIN32)