https://git.reactos.org/?p=reactos.git;a=commitdiff;h=730b13daacfd94f848302…
commit 730b13daacfd94f848302acab70bae22af34ba3e
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Sat Aug 27 15:58:54 2022 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Aug 27 15:58:54 2022 +0200
[NTOS:MM] kdbg.c: Fix Argv[n] copypastas (#4634)
---
ntoskrnl/mm/ARM3/kdbg.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/ntoskrnl/mm/ARM3/kdbg.c b/ntoskrnl/mm/ARM3/kdbg.c
index 92fe6af47dd..d568c42b45f 100644
--- a/ntoskrnl/mm/ARM3/kdbg.c
+++ b/ntoskrnl/mm/ARM3/kdbg.c
@@ -60,17 +60,17 @@ ExpKdbgExtPool(
/* Get address */
if (!KdbpGetHexNumber(Argv[1], &Address))
{
- KdbpPrint("Invalid parameter: %s\n", Argv[0]);
+ KdbpPrint("Invalid parameter: %s\n", Argv[1]);
return TRUE;
}
}
if (Argc > 2)
{
- /* Get address */
- if (!KdbpGetHexNumber(Argv[1], &Flags))
+ /* Get flags */
+ if (!KdbpGetHexNumber(Argv[2], &Flags))
{
- KdbpPrint("Invalid parameter: %s\n", Argv[0]);
+ KdbpPrint("Invalid parameter: %s\n", Argv[2]);
return TRUE;
}
}
@@ -185,14 +185,14 @@ ExpKdbgExtPoolUsed(
ExpKdbgExtPoolUsedGetTag(Argv[2], &Tag, &Mask);
if (!KdbpGetHexNumber(Argv[1], &Flags))
{
- KdbpPrint("Invalid parameter: %s\n", Argv[0]);
+ KdbpPrint("Invalid parameter: %s\n", Argv[1]);
}
}
else
{
/* Otherwise, try to find out whether that's flags */
if (strlen(Argv[1]) == 1 ||
- (strlen(Argv[1]) == 3 && Argv[1][0] == '0' &&
Argv[1][1] == 'x'))
+ (strlen(Argv[1]) == 3 && Argv[1][0] == '0' &&
(Argv[1][1] == 'x' || Argv[1][1] == 'X')))
{
/* Fallback: if reading flags failed, assume it's a tag */
if (!KdbpGetHexNumber(Argv[1], &Flags))
@@ -568,7 +568,7 @@ ExpKdbgExtIrpFind(
{
if (!KdbpGetHexNumber(Argv[2], &FindCtxt.RestartAddress))
{
- KdbpPrint("Invalid parameter: %s\n", Argv[0]);
+ KdbpPrint("Invalid parameter: %s\n", Argv[2]);
FindCtxt.RestartAddress = 0;
}
}