From a4ba65a941dcf2632c57efd8f8560944d28dedc0 Mon Sep 17 00:00:00 2001 From: short <> Date: Thu, 30 Jan 2003 10:48:01 +0000 Subject: [PATCH] MmCreateMdl(): Zero the allocated 'Mdl' memory - maybe not needed but libcaptive does some sanity checks on its content --- ntoskrnl/mm/mdl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ntoskrnl/mm/mdl.c b/ntoskrnl/mm/mdl.c index 38129cc..366d37b 100644 --- a/ntoskrnl/mm/mdl.c +++ b/ntoskrnl/mm/mdl.c @@ -442,6 +442,9 @@ MmCreateMdl (PMDL MemoryDescriptorList, } } +#ifdef LIBCAPTIVE + RtlZeroMemory(MemoryDescriptorList,sizeof(*MemoryDescriptorList)); +#endif /* LIBCAPTIVE */ MmInitializeMdl(MemoryDescriptorList,Base,Length); return(MemoryDescriptorList); -- 1.8.3.1