https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0996dac6830589d308261…
commit 0996dac6830589d308261570823fe58a0da426c3
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Wed Feb 20 21:01:46 2019 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Wed Feb 20 21:02:11 2019 +0100
[VIDEOPRT] Don't return uninitialized memory
---
win32ss/drivers/videoprt/event.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/win32ss/drivers/videoprt/event.c b/win32ss/drivers/videoprt/event.c
index 99c6b39dd1..c4cf2d272f 100644
--- a/win32ss/drivers/videoprt/event.c
+++ b/win32ss/drivers/videoprt/event.c
@@ -35,6 +35,9 @@ VideoPortCreateEvent(IN PVOID HwDeviceExtension,
TAG_VIDEO_PORT);
if (EngEvent)
{
+ /* Zero flags */
+ EngEvent->fFlags = 0;
+
/* Set KEVENT pointer */
EngEvent->pKEvent = EngEvent + 1;