mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Remove path argument from cmd_execute()
It is always equal to argv[0] (or not used on Windows).
This commit is contained in:
parent
8dc11a0286
commit
73e8ec1b35
4 changed files with 5 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue