mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-01-22 15:14:40 +01:00
Remove path argument from cmd_execute()
It is always equal to argv[0] (or not used on Windows).
This commit is contained in:
@@ -91,7 +91,7 @@ adb_execute(const char *serial, const char *const adb_cmd[], size_t len) {
|
||||
|
||||
memcpy(&cmd[i], adb_cmd, len * sizeof(const char *));
|
||||
cmd[len + i] = NULL;
|
||||
enum process_result r = cmd_execute(cmd[0], cmd, &process);
|
||||
enum process_result r = cmd_execute(cmd, &process);
|
||||
if (r != PROCESS_SUCCESS) {
|
||||
show_adb_err_msg(r, cmd);
|
||||
return PROCESS_NONE;
|
||||
|
||||
Reference in New Issue
Block a user