diff --git a/reactos/ntoskrnl/kd/wrappers/gdbstub.c b/reactos/ntoskrnl/kd/wrappers/gdbstub.c index cd04001b5b3..0e4c45b7a1c 100644 --- a/reactos/ntoskrnl/kd/wrappers/gdbstub.c +++ b/reactos/ntoskrnl/kd/wrappers/gdbstub.c @@ -1296,7 +1296,6 @@ KdpGdbEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord, { PEPROCESS DbgProcess = NULL; - ptr = NULL; if (NULL != GspDbgThread && PsGetCurrentProcess() != GspDbgThread->ThreadsProcess) { @@ -1318,6 +1317,7 @@ KdpGdbEnterDebuggerException(PEXCEPTION_RECORD ExceptionRecord, { strcpy(GspOutBuffer, "OK"); } + ptr = NULL; } }