forked from Mirrors/wine-wine
services: Initialize OVERLAPPED Offset and OffsetHigh.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48735
Signed-off-by: Jefferson Carpenter <jeffersoncarpenter2@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 4dfd5f22f4
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
stable
parent
7db96d3e14
commit
40e27f9836
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#define NONAMELESSSTRUCT
|
||||
#define NONAMELESSUNION
|
||||
|
||||
#include <stdarg.h>
|
||||
|
@ -1133,6 +1134,8 @@ static BOOL process_send_command(struct process_entry *process, const void *data
|
|||
DWORD count, ret;
|
||||
BOOL r;
|
||||
|
||||
overlapped.u.s.Offset = 0;
|
||||
overlapped.u.s.OffsetHigh = 0;
|
||||
overlapped.hEvent = process->overlapped_event;
|
||||
r = WriteFile(process->control_pipe, data, size, &count, &overlapped);
|
||||
if (!r && GetLastError() == ERROR_IO_PENDING)
|
||||
|
|
Loading…
Reference in New Issue