fix attaching errors on the target process

This commit is contained in:
sina 2025-06-28 05:07:00 +02:00
parent 8aa8289236
commit b2b8cf5e63
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1411,7 +1411,7 @@ AttachingTargetProcess(PDEBUGGER_ATTACH_DETACH_USER_MODE_PROCESS Request)
//
// As we're here, we need to initialize the user-mode debugger
//
if (UdInitializeUserDebugger())
if (!UdInitializeUserDebugger())
{
Request->Result = DEBUGGER_ERROR_DEBUGGER_NOT_INITIALIZED;
return;

View file

@ -32,7 +32,7 @@ UdInitializeUserDebugger()
//
// Configure the exec-trap on all processors
//
if (ConfigureInitializeExecTrapOnAllProcessors())
if (!ConfigureInitializeExecTrapOnAllProcessors())
{
return FALSE;
}