fix -Wunused-but-set-variable
This commit is contained in:
@@ -59,16 +59,15 @@ terminal_is_cmd()
|
||||
char* exe_path = new char[MAX_PATH];
|
||||
DWORD exe_path_size = MAX_PATH;
|
||||
|
||||
DWORD ppid = GetCurrentProcessId();
|
||||
DWORD error = 0;
|
||||
|
||||
DWORD ppid = GetCurrentProcessId();
|
||||
while (ppid != 0) {
|
||||
DWORD pid = ppid;
|
||||
ppid = get_parent_pid(pid);
|
||||
|
||||
exe_path_size = MAX_PATH;
|
||||
error = get_process_name(ppid, exe_path, &exe_path_size);
|
||||
get_process_name(ppid, exe_path, &exe_path_size);
|
||||
|
||||
// DWORD error = get_process_name(ppid, exe_path, &exe_path_size);
|
||||
// fmt::print(
|
||||
// "PID={}; PPID={}; Err={}; EXE='{}'\n",
|
||||
// pid,
|
||||
|
||||
Reference in New Issue
Block a user