Skip to content

Commit b7681bf

Browse files
authored
Merge pull request server-imp#16 from Evasion3356/FixStaticImportRedirectionLocation
Fixed static use of C:\ location for imports.
2 parents a62087e + 17d6b73 commit b7681bf

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

SFAE.sln

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,17 @@ EndProject
1313
Global
1414
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1515
Debug|x64 = Debug|x64
16-
Debug|x86 = Debug|x86
1716
Release|x64 = Release|x64
18-
Release|x86 = Release|x86
1917
EndGlobalSection
2018
GlobalSection(ProjectConfigurationPlatforms) = postSolution
2119
{94C1BB19-29DC-49AE-96CA-94EE024BDA84}.Debug|x64.ActiveCfg = Debug|x64
2220
{94C1BB19-29DC-49AE-96CA-94EE024BDA84}.Debug|x64.Build.0 = Debug|x64
23-
{94C1BB19-29DC-49AE-96CA-94EE024BDA84}.Debug|x86.ActiveCfg = Debug|Win32
24-
{94C1BB19-29DC-49AE-96CA-94EE024BDA84}.Debug|x86.Build.0 = Debug|Win32
2521
{94C1BB19-29DC-49AE-96CA-94EE024BDA84}.Release|x64.ActiveCfg = Release|x64
2622
{94C1BB19-29DC-49AE-96CA-94EE024BDA84}.Release|x64.Build.0 = Release|x64
27-
{94C1BB19-29DC-49AE-96CA-94EE024BDA84}.Release|x86.ActiveCfg = Release|Win32
28-
{94C1BB19-29DC-49AE-96CA-94EE024BDA84}.Release|x86.Build.0 = Release|Win32
2923
{F142A341-5EE0-442D-A15F-98AE9B48DBAE}.Debug|x64.ActiveCfg = Debug|x64
3024
{F142A341-5EE0-442D-A15F-98AE9B48DBAE}.Debug|x64.Build.0 = Debug|x64
31-
{F142A341-5EE0-442D-A15F-98AE9B48DBAE}.Debug|x86.ActiveCfg = Debug|Win32
32-
{F142A341-5EE0-442D-A15F-98AE9B48DBAE}.Debug|x86.Build.0 = Debug|Win32
3325
{F142A341-5EE0-442D-A15F-98AE9B48DBAE}.Release|x64.ActiveCfg = Release|x64
3426
{F142A341-5EE0-442D-A15F-98AE9B48DBAE}.Release|x64.Build.0 = Release|x64
35-
{F142A341-5EE0-442D-A15F-98AE9B48DBAE}.Release|x86.ActiveCfg = Release|Win32
36-
{F142A341-5EE0-442D-A15F-98AE9B48DBAE}.Release|x86.Build.0 = Release|Win32
3727
EndGlobalSection
3828
GlobalSection(SolutionProperties) = preSolution
3929
HideSolutionNode = FALSE

dllmain.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#include "sfae.h"
33

44
// vcruntime140_1.dll exports
5-
#pragma comment(linker, "/export:__CxxFrameHandler4=C:\\Windows\\System32\\vcruntime140_1.__CxxFrameHandler4")
6-
#pragma comment(linker, "/export:__NLG_Dispatch2=C:\\Windows\\System32\\vcruntime140_1.__NLG_Dispatch2")
7-
#pragma comment(linker, "/export:__NLG_Return2=C:\\Windows\\System32\\vcruntime140_1.__NLG_Return2")
5+
#define DLLPATH "\\\\.\\GLOBALROOT\\SystemRoot\\System32\\vcruntime140_1.dll"
6+
#pragma comment(linker, "/EXPORT:___CxxFrameHandler4=" DLLPATH ".__CxxFrameHandler4")
7+
#pragma comment(linker, "/EXPORT:___NLG_Dispatch2=" DLLPATH ".__NLG_Dispatch2")
8+
#pragma comment(linker, "/EXPORT:___NLG_Return2=" DLLPATH ".__NLG_Return2")
89

910
BOOL APIENTRY DllMain( HMODULE hModule,
1011
DWORD ul_reason_for_call,

0 commit comments

Comments
 (0)