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>
This commit is contained in:
parent
3deae92a6f
commit
4dfd5f22f4
|
@ -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