Skip to content

Commit 9b5ccd3

Browse files
author
Dan Dees
committed
Loader.cpp - remove pragmas
remove #pragma comment(linker, "/export:...") directives - LdrUnloadDllMemoryAndExitThread - FreeLibraryMemoryAndExitThread resolving the LNK4197 warnings. The exports controlled solely by MemoryModulePP.def
1 parent 61729ff commit 9b5ccd3

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

MemoryModule/Loader.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
#include "stdafx.h"
22
#include <cmath>
33

4-
#ifdef _USRDLL
5-
#if (defined(_WIN64) || defined(_M_ARM))
6-
#pragma comment(linker,"/export:LdrUnloadDllMemoryAndExitThread")
7-
#pragma comment(linker,"/export:FreeLibraryMemoryAndExitThread=LdrUnloadDllMemoryAndExitThread")
8-
#else
9-
#pragma comment(linker,"/export:LdrUnloadDllMemoryAndExitThread=_LdrUnloadDllMemoryAndExitThread@8")
10-
#pragma comment(linker,"/export:FreeLibraryMemoryAndExitThread=_LdrUnloadDllMemoryAndExitThread@8")
11-
#endif
12-
#endif
13-
144
NTSTATUS NTAPI LdrMapDllMemory(
155
_In_ HMEMORYMODULE ViewBase,
166
_In_ DWORD dwFlags,
@@ -304,4 +294,4 @@ extern "C" NTSTATUS NTAPI LdrQuerySystemMemoryModuleFeatures(_Out_ PDWORD pFeatu
304294
status = GetExceptionCode();
305295
}
306296
return status;
307-
}
297+
}

0 commit comments

Comments
 (0)