MmCreateMdl(): Zero the allocated 'Mdl' memory
authorshort <>
Thu, 30 Jan 2003 10:48:01 +0000 (10:48 +0000)
committershort <>
Thu, 30 Jan 2003 10:48:01 +0000 (10:48 +0000)
 - maybe not needed but libcaptive does some sanity checks on its content

ntoskrnl/mm/mdl.c

index 38129cc..366d37b 100644 (file)
@@ -442,6 +442,9 @@ MmCreateMdl (PMDL   MemoryDescriptorList,
          }
      }
    
+#ifdef LIBCAPTIVE
+   RtlZeroMemory(MemoryDescriptorList,sizeof(*MemoryDescriptorList));
+#endif /* LIBCAPTIVE */
    MmInitializeMdl(MemoryDescriptorList,Base,Length);
    
    return(MemoryDescriptorList);