First use "ptr", then set it to NULL

svn path=/trunk/; revision=18524
This commit is contained in:
Gé van Geldorp 2005-10-17 16:59:31 +00:00
parent 2960adb14b
commit 16f6e946c5

View 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;
}
}