First use "ptr", then set it to NULL
authorGé van Geldorp <ge@gse.nl>
Mon, 17 Oct 2005 16:59:31 +0000 (16:59 +0000)
committerGé van Geldorp <ge@gse.nl>
Mon, 17 Oct 2005 16:59:31 +0000 (16:59 +0000)
svn path=/trunk/; revision=18524

reactos/ntoskrnl/kd/wrappers/gdbstub.c

index cd04001..0e4c45b 100644 (file)
@@ -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;
                     }
                 }