aboutsummaryrefslogtreecommitdiff
path: root/stormlib_dll
diff options
context:
space:
mode:
Diffstat (limited to 'stormlib_dll')
-rw-r--r--stormlib_dll/DllMain.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stormlib_dll/DllMain.c b/stormlib_dll/DllMain.c
index f1b9167..1ea4b09 100644
--- a/stormlib_dll/DllMain.c
+++ b/stormlib_dll/DllMain.c
@@ -12,6 +12,12 @@
#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)