git://git.jankratochvil.net
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e02da5b
)
MmCreateMdl(): Zero the allocated 'Mdl' memory
author
short
<>
Thu, 30 Jan 2003 10:48:01 +0000
(10:48 +0000)
committer
short
<>
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
patch
|
blob
|
history
diff --git
a/ntoskrnl/mm/mdl.c
b/ntoskrnl/mm/mdl.c
index
38129cc
..
366d37b
100644
(file)
--- 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);