mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-20 03:25:03 +00:00
Merge 43e7af3d5b
into a60aef5aaf
This commit is contained in:
commit
e6633f3b12
2 changed files with 10 additions and 1 deletions
|
@ -319,5 +319,10 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
avformat_network_deinit(); // ignore failure
|
||||
|
||||
#if defined (__WINDOWS__) && ! defined (WINDOWS_NOCONSOLE)
|
||||
if (res != 0) {
|
||||
system("pause");
|
||||
}
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,11 @@ enum process_result cmd_execute(const char *path, const char *const argv[], HAND
|
|||
#endif
|
||||
if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, flags, NULL, NULL, &si, &pi)) {
|
||||
*handle = NULL;
|
||||
return PROCESS_ERROR_GENERIC;
|
||||
if (GetLastError() == ERROR_FILE_NOT_FOUND) {
|
||||
return PROCESS_ERROR_MISSING_BINARY;
|
||||
} else {
|
||||
return PROCESS_ERROR_GENERIC;
|
||||
}
|
||||
}
|
||||
|
||||
*handle = pi.hProcess;
|
||||
|
|
Loading…
Add table
Reference in a new issue