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.
master
Richard Stanway 2017-06-21 17:42:05 +02:00
parent 8ad8e18d04
commit 20cc8e6ab7
No known key found for this signature in database
GPG Key ID: AAC1E5265D71B3FD
1 changed files with 1 additions and 0 deletions

View File

@ -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();