aboutsummaryrefslogtreecommitdiff
path: root/stormlib_dll
diff options
context:
space:
mode:
authorunknown <E:\Ladik\Mail>2015-06-30 21:12:13 +0200
committerunknown <E:\Ladik\Mail>2015-06-30 21:12:13 +0200
commit607e4458e775e17de450f550e7d412ef41013138 (patch)
tree8003e02b7bdad2f58c04f5d80d7d5239524be0e8 /stormlib_dll
parent8017b11a97c938dad205a2e885a81380241fb741 (diff)
+ Forwarded exports moved to DEF file
Diffstat (limited to 'stormlib_dll')
-rw-r--r--stormlib_dll/DllMain.c6
-rw-r--r--stormlib_dll/StormLib.def3
2 files changed, 3 insertions, 6 deletions
diff --git a/stormlib_dll/DllMain.c b/stormlib_dll/DllMain.c
index 1ea4b09..f1b9167 100644
--- a/stormlib_dll/DllMain.c
+++ b/stormlib_dll/DllMain.c
@@ -12,12 +12,6 @@
#include <windows.h>
//-----------------------------------------------------------------------------
-// Forwarded exports
-
-#pragma comment(linker, "/export:GetLastError=Kernel32.GetLastError")
-#pragma comment(linker, "/export:SetLastError=Kernel32.SetLastError")
-
-//-----------------------------------------------------------------------------
// DllMain
BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID lpReserved)
diff --git a/stormlib_dll/StormLib.def b/stormlib_dll/StormLib.def
index a85f942..4b48b13 100644
--- a/stormlib_dll/StormLib.def
+++ b/stormlib_dll/StormLib.def
@@ -73,3 +73,6 @@ EXPORTS
SCompExplode
SCompCompress
SCompDecompress
+
+ GetLastError=Kernel32.GetLastError
+ SetLastError=Kernel32.SetLastError