From 096668b837dd9221b89752566246c2e7a5b98208 Mon Sep 17 00:00:00 2001 From: n-a-c-h Date: Tue, 20 May 2008 12:45:49 +0000 Subject: [PATCH] For building debug builds, no security ever. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@520 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/protect.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/win32/protect.c b/src/win32/protect.c index 0e4ba268..b69618f7 100644 --- a/src/win32/protect.c +++ b/src/win32/protect.c @@ -6,6 +6,16 @@ #include #include "protect.h" +#ifdef _DEBUG + +//For building debug builds, no security ever +int ExecutableValid(const char *executable_filename) +{ + return(0); +} + +#else + static uint8_t *memmem(const uint8_t *haystack, size_t haystacklen, const uint8_t *needle, size_t needlelen) { if (needlelen) @@ -118,3 +128,5 @@ int ExecutableValid(const char *executable_filename) return(retval); } + +#endif