Sweden-Number/dlls/ntdll/tests
Jinoh Kang 3e2f443003 server: Fix querying debug port with restricted DACL.
Today, Wine uses NtQueryInformationProcess/ProcessDebugPort to detect
whether the current process is being debugged.  If it is, the process
issues a breakpoint to yield control to the debugger.

Some debuggers (e.g. latest CDB) appear to create debug handles with
restricted DACL, which causes querying debug port to fail with
STATUS_ACCESS_DENIED.  This results in the debuggee erroneously
skipping the initial breakpoint.

Fix this by not requiring DEBUG_ALL_ACCESS when opening the debug port
object.  Instead, use MAXIMUM_ALLOWED for the access mask.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52184
Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-09 17:14:59 +01:00
..
Makefile.in ntdll: Support THREAD_CREATE_FLAGS_HIDE_FROM_DEBUGGER thread creation flag. 2021-12-06 12:20:34 +01:00
atom.c
change.c
directory.c
env.c
error.c
exception.c ntdll: Set rcx on exit from syscall dispatcher on x64. 2021-12-03 19:31:55 +01:00
file.c
generated.c
info.c server: Fix querying debug port with restricted DACL. 2021-12-09 17:14:59 +01:00
large_int.c
ntdll_test.h
om.c ntdll/tests: Add tests for NtCompareObjects. 2021-11-29 23:25:46 +01:00
path.c
pipe.c server: Return ReadDataAvailable value for FilePipeLocalInformation. 2021-12-06 22:55:07 +01:00
port.c
reg.c
rtl.c
rtlbitmap.c
rtlstr.c
string.c
sync.c ntdll/tests: Add basic tests for thread-id alert functions. 2021-11-17 17:59:26 +01:00
thread.c ntdll: Support THREAD_CREATE_FLAGS_HIDE_FROM_DEBUGGER thread creation flag. 2021-12-06 12:20:34 +01:00
threadpool.c
time.c
virtual.c ntdll/tests: Fix a test failure on older Windows versions. 2021-11-22 22:20:50 +01:00
wow64.c