Skip to content

Commit

Permalink
win: constify __pfnDliNotifyHook2
Browse files Browse the repository at this point in the history
Visual Studio 2015 Update 2 defines __pfnDliNotifyHook2 as const.

Fixes: nodejs#949
  • Loading branch information
orangemocha committed Jun 8, 2016
1 parent 3df8222 commit 294729a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/win_delay_load_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
return (FARPROC) m;
}

#if defined(_DELAY_IMP_VER) && _DELAY_IMP_VER >= 3
const
#endif
PfnDliHook __pfnDliNotifyHook2 = load_exe_hook;

#endif

0 comments on commit 294729a

Please sign in to comment.