2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-08-31 14:25:56 +00:00

Merge pull request #261 from npes87184/dev

prevent closing console right after process error in windows
This commit is contained in:
Romain Vimont
2018-09-18 08:56:40 +02:00
committed by GitHub

View File

@@ -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;
} }