Skip to content

Commit

Permalink
Fix __pfnDliFailureHook2 redefinition on MSVC versions < 2015 Update 3 (
Browse files Browse the repository at this point in the history
#190)

The const was added to __pfnDliFailureHook2 in MSVC 2015 Update 3, so any compilers before that shouldn't define it as const
  • Loading branch information
squeek502 authored and rphillips committed Feb 19, 2019
1 parent fe02ab2 commit 5a81309
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/luvi_renamed.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#include "windows.h"
#include "delayimp.h"
FARPROC WINAPI LoadFailureHook(unsigned dliNotify, PDelayLoadInfo pdli);
FARPROC WINAPI LoadFailureHook(unsigned dliNotify, PDelayLoadInfo pdli);
#if _MSC_FULL_VER >= 190024210 // MSVC 2015 Update 3
#ifndef DELAYIMP_INSECURE_WRITABLE_HOOKS
const
#endif
#endif
extern PfnDliHook __pfnDliFailureHook2 = LoadFailureHook;

Expand Down

0 comments on commit 5a81309

Please sign in to comment.