aboutsummaryrefslogtreecommitdiff
path: root/stormlib_dll
diff options
context:
space:
mode:
authorunknown <E:\Ladik\Mail>2015-06-30 21:10:59 +0200
committerunknown <E:\Ladik\Mail>2015-06-30 21:10:59 +0200
commit8017b11a97c938dad205a2e885a81380241fb741 (patch)
tree82c823d672760baecdaacc3ca0d43ed76c0c56cd /stormlib_dll
parent32ca2970f42277797fedfbae5cfa5466ab97b6af (diff)
+ Added forwarded export for SetLastError and GetLastError
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)