Skip to content

Commit

Permalink
Fix wrong resource file flags set in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
crosire committed Dec 16, 2020
1 parent 34cf7bb commit 654588e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion d3d8to9.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,16 @@
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>D3D_DEBUG_INFO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>_DEBUG;D3D_DEBUG_INFO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ModuleDefinitionFile>res\d3d8.def</ModuleDefinitionFile>
<AdditionalDependencies>d3d9.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
Expand Down
6 changes: 3 additions & 3 deletions res/d3d8to9.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 654588e

Please sign in to comment.