Skip to content

Commit

Permalink
Enable ASLR for Frhed.exe / Increment FRHED_MINOR_VERSION / Minor cle…
Browse files Browse the repository at this point in the history
…anups
  • Loading branch information
jtuc committed Nov 1, 2017
1 parent be338b7 commit e59f560
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 29 deletions.
10 changes: 6 additions & 4 deletions FRHED/VersionData.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,22 @@ class CVersionData
}
return 0;
}
const CVersionData *Find(LPCWSTR szKey) const
const CVersionData *Find(LPCWSTR lpszKey) const
{
const CVersionData *p = First();
while (p < Next())
{
if (szKey == 0 || StrCmpW(szKey, p->szKey) == 0)
if (lpszKey == 0 || lstrcmpiW(lpszKey, p->szKey) == 0)
return p;
p = p->Next();
}
return 0;
}
static const CVersionData *Load(HMODULE hModule = 0, LPCTSTR lpszRes = MAKEINTRESOURCE(VS_VERSION_INFO))
{
HRSRC hRes = FindResource(hModule, lpszRes, RT_VERSION);
return (const CVersionData *)LoadResource(hModule, hRes);
if (HRSRC const hFindRes = FindResource(hModule, lpszRes, RT_VERSION))
if (HGLOBAL const hLoadRes = LoadResource(hModule, hFindRes))
return static_cast<const CVersionData *>(LockResource(hLoadRes));
return 0;
}
};
22 changes: 0 additions & 22 deletions FRHED/frhed.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>NotSet</CharacterSet>
<PlatformToolset>v90</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<PlatformToolset>v90</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
Expand Down Expand Up @@ -167,8 +165,6 @@
<AdditionalDependencies>runtmchk.lib;version.lib;comctl32.lib;wininet.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<SubSystem>Windows</SubSystem>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
Expand All @@ -195,9 +191,6 @@
<AdditionalDependencies>runtmchk.lib;version.lib;comctl32.lib;wininet.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<SubSystem>Windows</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
Expand All @@ -222,9 +215,6 @@
<AdditionalDependencies>version.lib;comctl32.lib;wininet.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
Expand Down Expand Up @@ -252,9 +242,6 @@
<AdditionalDependencies>version.lib;comctl32.lib;wininet.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
Expand All @@ -279,9 +266,6 @@
<AdditionalDependencies>version.lib;comctl32.lib;wininet.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
Expand Down Expand Up @@ -309,9 +293,6 @@
<AdditionalDependencies>version.lib;comctl32.lib;wininet.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Windows</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
Expand Down Expand Up @@ -362,9 +343,6 @@
<AdditionalDependencies>runtmchk.lib;version.lib;comctl32.lib;wininet.lib;shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
<SubSystem>Windows</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX64</TargetMachine>
</Link>
</ItemDefinitionGroup>
Expand Down
2 changes: 0 additions & 2 deletions FRHED/heksedit.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<CharacterSet>Unicode</CharacterSet>
<PlatformToolset>v90</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
Expand All @@ -59,7 +58,6 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseOfMfc>false</UseOfMfc>
<PlatformToolset>v90</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='UnicodeRelease|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
Expand Down
2 changes: 1 addition & 1 deletion FRHED/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Last change: 2013-04-10 by Jochen Neubeck
// Note that for releases, these values are read from
// versions.ini file and set here by the SetVersions.py script
#define FRHED_MAJOR_VERSION 0
#define FRHED_MINOR_VERSION 10903
#define FRHED_MINOR_VERSION 10904
#define FRHED_SUB_RELEASE_NO 2017
#define FRHED_BUILD_NO 0

Expand Down

0 comments on commit e59f560

Please sign in to comment.