ffmpeg-mux: Set error mode to SEM_FAILCRITICALERRORS

This prevents spurious dialog boxes appearing, such as "No disk is in the
drive" if the application attempts to access an invalid drive.
This commit is contained in:
Richard Stanway
2017-06-21 17:40:35 +02:00
parent ac90d863cb
commit cef0689a36

View File

@@ -646,6 +646,8 @@ int main(int argc, char *argv[])
#ifdef _WIN32
char **argv;
SetErrorMode(SEM_FAILCRITICALERRORS);
argv = malloc(argc * sizeof(char*));
for (int i = 0; i < argc; i++) {
size_t len = wcslen(argv_w[i]);