From 654588e408a985e2474cc8ca82e27f7854b82530 Mon Sep 17 00:00:00 2001 From: crosire Date: Wed, 16 Dec 2020 17:17:04 +0100 Subject: [PATCH] Fix wrong resource file flags set in release builds --- d3d8to9.vcxproj | 5 ++++- res/d3d8to9.rc | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/d3d8to9.vcxproj b/d3d8to9.vcxproj index fed1314..693d3ae 100644 --- a/d3d8to9.vcxproj +++ b/d3d8to9.vcxproj @@ -43,13 +43,16 @@ Level3 Disabled true - D3D_DEBUG_INFO;%(PreprocessorDefinitions) + _DEBUG;D3D_DEBUG_INFO;%(PreprocessorDefinitions) true res\d3d8.def d3d9.lib;%(AdditionalDependencies) + + _DEBUG;%(PreprocessorDefinitions) + diff --git a/res/d3d8to9.rc b/res/d3d8to9.rc index 42d2610..b4853d4 100644 --- a/res/d3d8to9.rc +++ b/res/d3d8to9.rc @@ -56,10 +56,10 @@ VS_VERSION_INFO VERSIONINFO FILEVERSION 1,11,0,0 PRODUCTVERSION 3,0,0,0 FILEFLAGSMASK 0x3fL -#ifdef NDEBUG - FILEFLAGS 0x0L -#else +#ifdef _DEBUG FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L #endif FILEOS 0x40004L FILETYPE 0x2L