]> mj.ucw.cz Git - pciutils.git/commit
windows: Improve win32_change_error_mode()
authorPali Rohár <pali@kernel.org>
Mon, 27 Oct 2025 10:55:34 +0000 (11:55 +0100)
committerMartin Mareš <mj@ucw.cz>
Sun, 28 Dec 2025 20:49:06 +0000 (21:49 +0100)
commitbec8e35118c02a0b9fbb913bb32c0d75879ed817
tree7d777571add139700a01ecdfd52c1f3469a2d766
parent49dc598a81b59fd6132e1c6e59160b27eb176d1c
windows: Improve win32_change_error_mode()

Do not clear existing error bits when setting SEM_FAILCRITICALERRORS bit.
Just append SEM_FAILCRITICALERRORS to existing error bit set.

Use GetThreadErrorMode(), GetThreadErrorMode() or GetErrorMode() function
to retrive existing set error bits.
lib/physmem-windows.c
lib/win32-helpers.c
lib/win32-helpers.h