Author: mjansen
Date: Thu Oct 20 21:08:17 2016
New Revision: 73003
URL:
http://svn.reactos.org/svn/reactos?rev=73003&view=rev
Log:
[SDK] Fix our Delayload notify hook for MSVC x64
Modified:
trunk/reactos/sdk/lib/delayimp/delayimp.c
Modified: trunk/reactos/sdk/lib/delayimp/delayimp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/delayimp/delayimp.…
==============================================================================
--- trunk/reactos/sdk/lib/delayimp/delayimp.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/delayimp/delayimp.c [iso-8859-1] Thu Oct 20 21:08:17 2016
@@ -28,8 +28,15 @@
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