https://git.reactos.org/?p=reactos.git;a=commitdiff;h=20bd5e8a9c072db7f1ddc…
commit 20bd5e8a9c072db7f1ddcca5e083414cbb8c5a09
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Fri Aug 16 09:07:14 2024 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Tue Jan 28 22:00:31 2025 +0100
[NTOS:MM] Allow not providing MMDBG_COPY_UNSAFE in MmDbgCopyMemory
Replace an assert by a log, as this works most of the times.
---
ntoskrnl/mm/ARM3/mmdbg.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/ntoskrnl/mm/ARM3/mmdbg.c b/ntoskrnl/mm/ARM3/mmdbg.c
index c47b8cfe156..316b43e1df8 100644
--- a/ntoskrnl/mm/ARM3/mmdbg.c
+++ b/ntoskrnl/mm/ARM3/mmdbg.c
@@ -132,7 +132,15 @@ MmDbgCopyMemory(IN ULONG64 Address,
PVOID CopyDestination, CopySource;
/* No local kernel debugging support yet, so don't worry about locking */
- ASSERT(Flags & MMDBG_COPY_UNSAFE);
+ if (!(Flags & MMDBG_COPY_UNSAFE))
+ {
+ static BOOLEAN Warned = FALSE;
+ if (!Warned)
+ {
+ KdpDprintf("MmDbgCopyMemory: not providing MMDBG_COPY_UNSAFE is
UNIMPLEMENTED\n");
+ Warned = TRUE;
+ }
+ }
/* We only handle 1, 2, 4 and 8 byte requests */
if ((Size != 1) &&