Merge branch 'npes87184:dev' into dev (#254)
Return specific error for missing adb binary on Windows
This commit is contained in:
commit
6a1fb070f7
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ enum process_result cmd_execute(const char *path, const char *const argv[], HAND
|
||||||
#endif
|
#endif
|
||||||
if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, flags, NULL, NULL, &si, &pi)) {
|
if (!CreateProcess(NULL, cmd, NULL, NULL, FALSE, flags, NULL, NULL, &si, &pi)) {
|
||||||
*handle = NULL;
|
*handle = NULL;
|
||||||
|
if (GetLastError() == ERROR_FILE_NOT_FOUND) {
|
||||||
|
return PROCESS_ERROR_MISSING_BINARY;
|
||||||
|
}
|
||||||
return PROCESS_ERROR_GENERIC;
|
return PROCESS_ERROR_GENERIC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue