Commit 4dfd5f22 authored by Jefferson Carpenter's avatar Jefferson Carpenter Committed by Alexandre Julliard

services: Initialize OVERLAPPED Offset and OffsetHigh.

parent 3deae92a
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
*/ */
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#define NONAMELESSSTRUCT
#define NONAMELESSUNION #define NONAMELESSUNION
#include <stdarg.h> #include <stdarg.h>
...@@ -1133,6 +1134,8 @@ static BOOL process_send_command(struct process_entry *process, const void *data ...@@ -1133,6 +1134,8 @@ static BOOL process_send_command(struct process_entry *process, const void *data
DWORD count, ret; DWORD count, ret;
BOOL r; BOOL r;
overlapped.u.s.Offset = 0;
overlapped.u.s.OffsetHigh = 0;
overlapped.hEvent = process->overlapped_event; overlapped.hEvent = process->overlapped_event;
r = WriteFile(process->control_pipe, data, size, &count, &overlapped); r = WriteFile(process->control_pipe, data, size, &count, &overlapped);
if (!r && GetLastError() == ERROR_IO_PENDING) if (!r && GetLastError() == ERROR_IO_PENDING)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment