diff options
author | unknown <E:\Ladik\Mail> | 2015-06-30 21:10:59 +0200 |
---|---|---|
committer | unknown <E:\Ladik\Mail> | 2015-06-30 21:10:59 +0200 |
commit | 8017b11a97c938dad205a2e885a81380241fb741 (patch) | |
tree | 82c823d672760baecdaacc3ca0d43ed76c0c56cd | |
parent | 32ca2970f42277797fedfbae5cfa5466ab97b6af (diff) |
+ Added forwarded export for SetLastError and GetLastError
-rw-r--r-- | stormlib_dll/DllMain.c | 6 |
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) |