[NTOS:MM] Allow not providing MMDBG_COPY_UNSAFE in MmDbgCopyMemory

Replace an assert by a log, as this works most of the times.
This commit is contained in:
Hervé Poussineau 2024-08-16 09:07:14 +02:00 committed by Hermès Bélusca-Maïto
parent 69cd1e107a
commit 20bd5e8a9c
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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) &&