projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5df400b
)
Disable the serial debug output if the com port doesn't exist.
author
Hartmut Birr
<osexpert@googlemail.com>
Sun, 2 Oct 2005 09:42:12 +0000
(09:42 +0000)
committer
Hartmut Birr
<osexpert@googlemail.com>
Sun, 2 Oct 2005 09:42:12 +0000
(09:42 +0000)
svn path=/trunk/; revision=18206
reactos/ntoskrnl/kd/kdio.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/kd/kdio.c
b/reactos/ntoskrnl/kd/kdio.c
index
6702515
..
bafc17b
100644
(file)
--- a/
reactos/ntoskrnl/kd/kdio.c
+++ b/
reactos/ntoskrnl/kd/kdio.c
@@
-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);