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:
@@ -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]);
|
||||
|
Reference in New Issue
Block a user