mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOS:KD] Fix release builds.
This commit is contained in:
parent
0d0ffb7d7d
commit
b2294b4c84
1 changed files with 6 additions and 1 deletions
|
@ -593,8 +593,9 @@ KdIoPrintf(
|
||||||
KdIoPrintString(Buffer, Length);
|
KdIoPrintString(Buffer, Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef KDBG
|
||||||
extern const CSTRING KdbPromptStr;
|
extern const CSTRING KdbPromptStr;
|
||||||
|
#endif
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
|
@ -645,9 +646,11 @@ KdReceivePacket(
|
||||||
_Out_ PULONG DataLength,
|
_Out_ PULONG DataLength,
|
||||||
_Inout_ PKD_CONTEXT Context)
|
_Inout_ PKD_CONTEXT Context)
|
||||||
{
|
{
|
||||||
|
#ifdef KDBG
|
||||||
PDBGKD_DEBUG_IO DebugIo;
|
PDBGKD_DEBUG_IO DebugIo;
|
||||||
STRING ResponseString;
|
STRING ResponseString;
|
||||||
CHAR MessageBuffer[512];
|
CHAR MessageBuffer[512];
|
||||||
|
#endif
|
||||||
|
|
||||||
if (PacketType != PACKET_TYPE_KD_DEBUG_IO)
|
if (PacketType != PACKET_TYPE_KD_DEBUG_IO)
|
||||||
{
|
{
|
||||||
|
@ -655,6 +658,7 @@ KdReceivePacket(
|
||||||
return KdPacketTimedOut;
|
return KdPacketTimedOut;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef KDBG
|
||||||
DebugIo = (PDBGKD_DEBUG_IO)MessageHeader->Buffer;
|
DebugIo = (PDBGKD_DEBUG_IO)MessageHeader->Buffer;
|
||||||
|
|
||||||
/* Validate API call */
|
/* Validate API call */
|
||||||
|
@ -703,6 +707,7 @@ KdReceivePacket(
|
||||||
|
|
||||||
/* Only now we can copy back the data into MessageData->Buffer */
|
/* Only now we can copy back the data into MessageData->Buffer */
|
||||||
RtlCopyMemory(MessageData->Buffer, ResponseString.Buffer, *DataLength);
|
RtlCopyMemory(MessageData->Buffer, ResponseString.Buffer, *DataLength);
|
||||||
|
#endif
|
||||||
|
|
||||||
return KdPacketReceived;
|
return KdPacketReceived;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue