From: short <> Date: Thu, 30 Jan 2003 10:48:01 +0000 (+0000) Subject: MmCreateMdl(): Zero the allocated 'Mdl' memory X-Git-Tag: captive-0_2~83 X-Git-Url: http://git.jankratochvil.net/?p=reactos.git;a=commitdiff_plain;h=a4ba65a941dcf2632c57efd8f8560944d28dedc0 MmCreateMdl(): Zero the allocated 'Mdl' memory - maybe not needed but libcaptive does some sanity checks on its content --- 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);