Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gmh5225 committed Sep 28, 2023
1 parent 8e0af1c commit a8ed586
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 22 deletions.
Binary file removed DSE-Patcher/16.ico
Binary file not shown.
Binary file removed DSE-Patcher/32.ico
Binary file not shown.
Binary file modified DSE-Patcher/DSE-Patcher.rc
Binary file not shown.
19 changes: 10 additions & 9 deletions DSE-Patcher/DSE-Patcher.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_NO_CRT_STDIO_INLINE;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -99,7 +100,8 @@
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_NO_CRT_STDIO_INLINE;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -115,9 +117,10 @@
<Optimization>MinSpace</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>false</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_NO_CRT_STDIO_INLINE;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -136,9 +139,10 @@
<Optimization>MinSpace</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>false</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WIN32;_NO_CRT_STDIO_INLINE;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<BufferSecurityCheck>false</BufferSecurityCheck>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -150,7 +154,8 @@
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>
</Link>
<PostBuildEvent>
<Command>$(SolutionDir)$(SolutionName)\upx.exe -9 --ultra-brute $(OutDir)$(TargetName)$(TargetExt)</Command>
<Command>
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
Expand All @@ -173,10 +178,6 @@
<ItemGroup>
<ResourceCompile Include="DSE-Patcher.rc" />
</ItemGroup>
<ItemGroup>
<None Include="16.ico" />
<None Include="32.ico" />
</ItemGroup>
<ItemGroup>
<Manifest Include="DSE-Patcher.exe.manifest" />
</ItemGroup>
Expand Down
8 changes: 0 additions & 8 deletions DSE-Patcher/DSE-Patcher.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,6 @@
<Filter>Resource Files</Filter>
</ResourceCompile>
</ItemGroup>
<ItemGroup>
<None Include="32.ico">
<Filter>Resource Files</Filter>
</None>
<None Include="16.ico">
<Filter>Resource Files</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Manifest Include="DSE-Patcher.exe.manifest">
<Filter>Resource Files</Filter>
Expand Down
4 changes: 2 additions & 2 deletions DSE-Patcher/MyDialog1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ int MyDlg1TooltipSetMultilineText(LPARAM lParam)
else if((HWND)pInfo->hdr.idFrom == g.Dlg1.hButton3)
{
pInfo->lpszText = "Restore \"Driver Signature Enforcement\":\nSets the variable to \"DSE Original Value\".\n\n"
"Attention:\nThe \"DSE Original Value\" is retrieved\nonly one time on startup of "APPNAME"!";
"Attention:\nThe \"DSE Original Value\" is retrieved\nonly one time on startup of !";
}
else if((HWND)pInfo->hdr.idFrom == g.Dlg1.hCombo1)
{
Expand Down Expand Up @@ -134,7 +134,7 @@ int MyDlg1OnInitDialog(HWND hwnd)
SendMessage(hwnd,WM_SETICON,ICON_SMALL,(LPARAM)hIcon2);

// set dialog title
SendMessage(hwnd,WM_SETTEXT,0,(LPARAM)APPNAME" "VERSION" "BUILD);
SendMessage(hwnd,WM_SETTEXT,0,(LPARAM)APPNAME);

// create status bar with two parts
RECT rect;
Expand Down
5 changes: 2 additions & 3 deletions DSE-Patcher/MyFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
// You should have received a copy of the GNU General Public License
// along with DSE-Patcher. If not, see <http://www.gnu.org/licenses/>.

#ifndef _MYFUNCTIONS
#define _MYFUNCTIONS
#pragma once

// Attention: The library file msvcrt.lib is copied from "C:\WinDDK\7600.16385.1\lib\Crt\amd64".
// This import library reduces the executable size and we have not to install any Microsoft
Expand Down Expand Up @@ -198,5 +197,5 @@ typedef struct _GLOBALS
int MyInitVulnerableDrivers(VULNERABLE_DRIVER *vd,DWORD dwElements);
DWORD WINAPI MyThreadProc1(PVOID pvoid);

#endif // _MYFUNCTIONS


0 comments on commit a8ed586

Please sign in to comment.