From 5f032e2dfabb1a921de250b78c716b57feecd7fe Mon Sep 17 00:00:00 2001 From: Fabrizio Fabbri Date: Thu, 12 May 2016 13:02:56 -0400 Subject: [PATCH] Fix MSVC compilation --- msvc/c/Makefile | 2 +- src/c/main.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/msvc/c/Makefile b/msvc/c/Makefile index 15bd498bc..656f2f210 100755 --- a/msvc/c/Makefile +++ b/msvc/c/Makefile @@ -66,7 +66,7 @@ HDIR = $(top_srcdir)\h HFILES = ..\ecl\config.h ..\ecl\atomic_ops.h $(HDIR)\ecl.h $(HDIR)\ecl-cmp.h\ $(HDIR)\object.h $(HDIR)\cs.h $(HDIR)\stacks.h\ $(HDIR)\external.h $(HDIR)\cons.h $(HDIR)\legacy.h\ - $(HDIR)\number.h $(HDIR)\page.h + $(HDIR)\number.h $(HDIR)\page.h \ $(HDIR)\internal.h $(HDIR)\ecl-inl.h $(HDIR)\bytecodes.h \ $(HDIR)\impl\math_dispatch.h diff --git a/src/c/main.d b/src/c/main.d index 3841005d7..981da13c0 100755 --- a/src/c/main.d +++ b/src/c/main.d @@ -201,7 +201,7 @@ _ecl_dealloc_env(cl_env_ptr env) ecl_internal_error("Unable to deallocate environment structure."); #else # if defined(ECL_USE_GUARD_PAGE) - if (VirtualFree(env, sizeof(*env), MEM_RELEASE)) + if (!VirtualFree(env, sizeof(*env), MEM_RELEASE)) ecl_internal_error("Unable to deallocate environment structure."); # endif #endif