mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:EX] HACK: on livecd, disable security features in NtSystemDebugControl
WinDBG can do some local debugging using 'windbg -kl'. In that case, WinDBG tries to directly use NtSystemDebugControl. If this function returns an error, WinDBG extracts a driver from its resources. WinDBG will send IOCTLs to this driver, and this driver will call KdSystemDebugControl. However, on livecd (where %SYSTEMROOT% is read-only), WinDBG is unable to extract the driver from its resources, and can't use the driver to call KdSystemDebugControl. As a work-around, allow all control classes in NtSystemDebugControl in case of livecd. WinDBG local debugging now also works on livecd (windbg -kl).
This commit is contained in:
parent
5547b74717
commit
b9852e83d2
1 changed files with 11 additions and 1 deletions
|
@ -267,7 +267,17 @@ NtSystemDebugControl(
|
|||
case SysDbgWriteBusData:
|
||||
case SysDbgCheckLowMemory:
|
||||
/* Those are implemented in KdSystemDebugControl */
|
||||
Status = STATUS_NOT_IMPLEMENTED;
|
||||
if (InitIsWinPEMode)
|
||||
{
|
||||
Status = KdSystemDebugControl(Command,
|
||||
InputBuffer, InputBufferLength,
|
||||
OutputBuffer, OutputBufferLength,
|
||||
&Length, PreviousMode);
|
||||
}
|
||||
else
|
||||
{
|
||||
Status = STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
break;
|
||||
|
||||
case SysDbgBreakPoint:
|
||||
|
|
Loading…
Reference in a new issue