Skip to content

Commit e0b03ab

Browse files
committed
win: work around __pfnDliNotifyHook2 type change
Visual Studio 2015 Update 3 defines __pfnDliNotifyHook2 as const. Fixes: #949
1 parent 3df8222 commit e0b03ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/win_delay_load_hook.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) {
3131
return (FARPROC) m;
3232
}
3333

34-
PfnDliHook __pfnDliNotifyHook2 = load_exe_hook;
34+
decltype(__pfnDliNotifyHook2) __pfnDliNotifyHook2 = load_exe_hook;
3535

3636
#endif

0 commit comments

Comments
 (0)