From 79df12ddcdd311cd1aa1b13448b454804fad9072 Mon Sep 17 00:00:00 2001 From: Kylart Date: Thu, 7 Nov 2019 14:22:50 +0100 Subject: [PATCH] Fix delay --- bindings/src/win_delay_load_hook.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/src/win_delay_load_hook.cc b/bindings/src/win_delay_load_hook.cc index d655abd..9d1736f 100644 --- a/bindings/src/win_delay_load_hook.cc +++ b/bindings/src/win_delay_load_hook.cc @@ -37,8 +37,7 @@ static FARPROC WINAPI load_exe_hook(unsigned int event, DelayLoadInfo* info) { HMODULE processModule = GetModuleHandle(NULL); // Get the path to the executable. - unsigned int kMaxPath = _MAX_PATH; - TCHAR processPath[kMaxPath]; + TCHAR processPath[_MAX_PATH]; // NOLINT GetModuleFileName(processModule, processPath, _MAX_PATH); // Get the name of the current executable.