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.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user