Disable the serial debug output if the com port doesn't exist.

svn path=/trunk/; revision=18206
This commit is contained in:
Hartmut Birr 2005-10-02 09:42:12 +00:00
parent 5df400b823
commit 3a68545201

View file

@ -171,7 +171,11 @@ KdpSerialInit(PKD_DISPATCH_TABLE DispatchTable,
DispatchTable->KdpPrintRoutine = KdpSerialDebugPrint;
/* Initialize the Port */
KdPortInitializeEx(&SerialPortInfo, 0, 0);
if (!KdPortInitializeEx(&SerialPortInfo, 0, 0))
{
KdpDebugMode.Serial = FALSE;
return;
}
/* Register as a Provider */
InsertTailList(&KdProviders, &DispatchTable->KdProvidersList);