[SDK] Fix our Delayload notify hook for MSVC x64
authorMark Jansen <mark.jansen@reactos.org>
Thu, 20 Oct 2016 21:08:17 +0000 (21:08 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Thu, 20 Oct 2016 21:08:17 +0000 (21:08 +0000)
svn path=/trunk/; revision=73003

reactos/sdk/lib/delayimp/delayimp.c

index f439a78..ee10f23 100644 (file)
@@ -28,8 +28,15 @@ extern PfnDliHook __pfnDliNotifyHook2Default = NULL;
 extern PfnDliHook __pfnDliFailureHook2Default = NULL;
 
 /* Tell the linker to use the fallback symbols */
+#if defined (_M_IX86)
 #pragma comment(linker, "/alternatename:___pfnDliNotifyHook2=___pfnDliNotifyHook2Default")
 #pragma comment(linker, "/alternatename:___pfnDliFailureHook2=___pfnDliFailureHook2Default")
+#elif defined (_M_IA64) || defined (_M_AMD64)
+#pragma comment(linker, "/alternatename:__pfnDliNotifyHook2=__pfnDliNotifyHook2Default")
+#pragma comment(linker, "/alternatename:__pfnDliFailureHook2=__pfnDliFailureHook2Default")
+#else
+#error Unsupported platform, please find the correct decoration for your arch!
+#endif
 #endif