提交 27bed948 编写于 作者: Y yuchenlin 提交者: Romain Vimont

Use specific error for missing binary on Windows

Signed-off-by: Nyuchenlin <npes87184@gmail.com>
Signed-off-by: NRomain Vimont <rom@rom1v.com>
上级 66def38b
......@@ -29,6 +29,9 @@ 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;
if (GetLastError() == ERROR_FILE_NOT_FOUND) {
return PROCESS_ERROR_MISSING_BINARY;
}
return PROCESS_ERROR_GENERIC;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册