mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Disable the serial debug output if the com port doesn't exist.
svn path=/trunk/; revision=18206
This commit is contained in:
parent
5df400b823
commit
3a68545201
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue