projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NTVDM]: Zero-fill memory with RtlZeroMemory (that exists also in NT mode), and use...
[reactos.git]
/
reactos
/
subsystems
/
ntvdm
/
hardware
/
mouse.c
diff --git
a/reactos/subsystems/ntvdm/hardware/mouse.c
b/reactos/subsystems/ntvdm/hardware/mouse.c
index
9c5c84e
..
f480d5b
100644
(file)
--- a/
reactos/subsystems/ntvdm/hardware/mouse.c
+++ b/
reactos/subsystems/ntvdm/hardware/mouse.c
@@
-12,6
+12,7
@@
#include "mouse.h"
#include "ps2.h"
#include "mouse.h"
#include "ps2.h"
+// #include "pic.h"
// HACK: For the PS/2 bypass and MOUSE.COM driver direct call
#include "dos/mouse32.h"
// HACK: For the PS/2 bypass and MOUSE.COM driver direct call
#include "dos/mouse32.h"
@@
-69,7
+70,7
@@
static VOID MouseReset(VOID)
static VOID MouseGetPacket(PMOUSE_PACKET Packet)
{
/* Clear the packet */
static VOID MouseGetPacket(PMOUSE_PACKET Packet)
{
/* Clear the packet */
-
ZeroMemory(Packet, sizeof(MOUSE_PACKET
));
+
RtlZeroMemory(Packet, sizeof(*Packet
));
Packet->Flags |= MOUSE_ALWAYS_SET;
Packet->Flags |= MOUSE_ALWAYS_SET;