Skip to content

Commit

Permalink
fix format string specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
M3m3M4n committed Jul 25, 2021
1 parent ab6a7a9 commit a5e3ec4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/drdeploy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1554,9 +1554,8 @@ _tmain(int argc, TCHAR *targv[])
# else
/* PR#3328: move GetModuleFileNameExW out of core library */
TCHAR exe_path[MAXIMUM_PATH];
HANDLE attach_handle =
OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,
FALSE, (DWORD)attach_pid);
HANDLE attach_handle = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ,
FALSE, (DWORD)attach_pid);
if (attach_handle == NULL ||
!GetModuleFileNameExW(attach_handle, NULL, exe_path, MAXIMUM_PATH))
usage(false, "attach to invalid pid");
Expand Down

0 comments on commit a5e3ec4

Please sign in to comment.