mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-07 00:28:58 +00:00
prevent closing console right after process error in windows
Signed-off-by: yuchenlin <npes87184@gmail.com>
This commit is contained in:
parent
a60aef5aaf
commit
066d3dfbcb
1 changed files with 5 additions and 0 deletions
|
@ -319,5 +319,10 @@ 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) {
|
||||||
|
system("pause");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue