summaryrefslogtreecommitdiffstats
path: root/lib/i386-io-windows.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:31:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:31:41 +0000
commit9d227ccb45612c6f8a2a488d9d2ca90784489afc (patch)
treeaae8a30f23900307a2d14ebe0588db807ab3b355 /lib/i386-io-windows.h
parentReleasing progress-linux version 1:3.11.1-1~progress7.99u1. (diff)
downloadpciutils-9d227ccb45612c6f8a2a488d9d2ca90784489afc.tar.xz
pciutils-9d227ccb45612c6f8a2a488d9d2ca90784489afc.zip
Merging upstream version 1:3.12.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/i386-io-windows.h')
-rw-r--r--lib/i386-io-windows.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/i386-io-windows.h b/lib/i386-io-windows.h
index d2da452..8f8cffd 100644
--- a/lib/i386-io-windows.h
+++ b/lib/i386-io-windows.h
@@ -150,11 +150,12 @@ SetProcessUserModeIOPL(VOID)
BOOL ret;
/*
- * Load ntdll.dll library with disabled critical-error-handler message box.
+ * Load ntdll.dll library with disabled critical-error-handler and
+ * file-not-found message box.
* It means that NT kernel does not show unwanted GUI message box to user
* when LoadLibrary() function fails.
*/
- prev_error_mode = win32_change_error_mode(SEM_FAILCRITICALERRORS);
+ prev_error_mode = win32_change_error_mode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
ntdll = LoadLibrary(TEXT("ntdll.dll"));
win32_change_error_mode(prev_error_mode);
if (!ntdll)