From 20cc8e6ab76a052b4f3c20698ca478bfa0b27d31 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Wed, 21 Jun 2017 17:42:05 +0200 Subject: [PATCH] inject-helper: 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. --- plugins/win-capture/inject-helper/inject-helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/win-capture/inject-helper/inject-helper.c b/plugins/win-capture/inject-helper/inject-helper.c index 189569602..a9eb0d8d0 100644 --- a/plugins/win-capture/inject-helper/inject-helper.c +++ b/plugins/win-capture/inject-helper/inject-helper.c @@ -101,6 +101,7 @@ int main(int argc, char *argv_ansi[]) LPWSTR *argv; int ret = INJECT_ERROR_INVALID_PARAMS; + SetErrorMode(SEM_FAILCRITICALERRORS); load_debug_privilege(); pCommandLineW = GetCommandLineW();