mirror of https://github.com/Genymobile/scrcpy
prevent closing console right after process error in windows
Signed-off-by: yuchenlin <npes87184@gmail.com>
This commit is contained in:
parent
eca99d5af7
commit
140b1ef6a5
|
@ -319,5 +319,11 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
avformat_network_deinit(); // ignore failure
|
avformat_network_deinit(); // ignore failure
|
||||||
|
|
||||||
|
#if defined (__WINDOWS__) && ! defined (WINDOWS_NOCONSOLE)
|
||||||
|
if (res != 0) {
|
||||||
|
fprintf(stderr, "Press any key to continue...\n");
|
||||||
|
getchar();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue