summaryrefslogtreecommitdiff
path: root/serial/VirtualSerial2/queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'serial/VirtualSerial2/queue.c')
-rw-r--r--serial/VirtualSerial2/queue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/serial/VirtualSerial2/queue.c b/serial/VirtualSerial2/queue.c
index 80571b42..371ef693 100644
--- a/serial/VirtualSerial2/queue.c
+++ b/serial/VirtualSerial2/queue.c
@@ -173,7 +173,6 @@ RequestCopyToBuffer(
return status;
}
- WdfRequestSetInformation(Request, NumBytesToCopyTo);
return status;
}
@@ -718,7 +717,7 @@ QueueProcessGetLineControl(
//
// Take a snapshot of the line control register variable
//
- lineControlSnapshot = *lineControlRegister;
+ lineControlSnapshot = ReadNoFence((LONG *)lineControlRegister);
//
// Decode the word length
@@ -947,7 +946,7 @@ QueueProcessSetLineControl(
#endif
}
- lineControlSnapshot = *lineControlRegister;
+ lineControlSnapshot = ReadNoFence((LONG *)lineControlRegister);
lineControlNew = (lineControlSnapshot & SERIAL_LCR_BREAK) |
(lineControlData | lineControlParity | lineControlStop);