projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NTOS:KD] Pass PreviousMode down to KdpPrintString, since ExGetPreviousMode is not...
[reactos.git]
/
ntoskrnl
/
kd
/
kdio.c
diff --git
a/ntoskrnl/kd/kdio.c
b/ntoskrnl/kd/kdio.c
index
50e4d81
..
53c99c4
100644
(file)
--- a/
ntoskrnl/kd/kdio.c
+++ b/
ntoskrnl/kd/kdio.c
@@
-569,7
+569,8
@@
ULONG
NTAPI
KdpPrintString(
_In_reads_bytes_(Length) PCHAR UnsafeString,
NTAPI
KdpPrintString(
_In_reads_bytes_(Length) PCHAR UnsafeString,
- _In_ ULONG Length)
+ _In_ ULONG Length,
+ _In_ KPROCESSOR_MODE PreviousMode)
{
PLIST_ENTRY CurrentEntry;
PKD_DISPATCH_TABLE CurrentTable;
{
PLIST_ENTRY CurrentEntry;
PKD_DISPATCH_TABLE CurrentTable;
@@
-580,7
+581,7
@@
KdpPrintString(
Length = min(Length, sizeof(StringBuffer));
Length = min(Length, sizeof(StringBuffer));
- if (
ExGetPreviousMode()
!= KernelMode)
+ if (
PreviousMode
!= KernelMode)
{
_SEH2_TRY
{
{
_SEH2_TRY
{