Skip to content

Commit

Permalink
Fix "_restart" crash and compiler warnings (#6)
Browse files Browse the repository at this point in the history
* Fix "_restart" crash and compiler warnings

---------

Co-authored-by: ScriptedSnark <[email protected]>
  • Loading branch information
BlueNightHawk and ScriptedSnark authored Jul 9, 2023
1 parent c341f3c commit 8471dce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions external/SPTLib/sptlib-stdafx.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#pragma once

#ifdef _WIN32
#define _CRT_SECURE_NO_WARNINGS
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <Windows.h>
Expand Down Expand Up @@ -29,4 +28,6 @@
#include <utility>

using std::uintptr_t;
using std::size_t;
using std::size_t;

#define stricmp _stricmp
4 changes: 2 additions & 2 deletions launcher/launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi

g_pFileSystem->Unmount();
Sys_UnloadModule(hModule);
} while (bRestartEngine);

MH_Uninitialize();
MH_Uninitialize();
} while (bRestartEngine);

registry->Shutdown();

Expand Down
2 changes: 1 addition & 1 deletion launcher/launcher.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>

0 comments on commit 8471dce

Please sign in to comment.