Fix delay

This commit is contained in:
Kylart 2019-11-07 14:22:50 +01:00
parent 8ce6a6030d
commit 79df12ddcd
1 changed files with 1 additions and 2 deletions

View File

@ -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.