Commit 7560a890 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Make padding explicit in the wake_up_reply structure.

parent 838803ce
......@@ -137,6 +137,7 @@ struct wake_up_reply
{
client_ptr_t cookie;
int signaled;
int __pad;
};
......@@ -5058,6 +5059,6 @@ union generic_reply
struct set_window_layered_info_reply set_window_layered_info_reply;
};
#define SERVER_PROTOCOL_VERSION 367
#define SERVER_PROTOCOL_VERSION 368
#endif /* __WINE_WINE_SERVER_PROTOCOL_H */
......@@ -153,6 +153,7 @@ struct wake_up_reply
{
client_ptr_t cookie; /* magic cookie that was passed in select_request */
int signaled; /* wait result */
int __pad;
};
/* NT-style timeout, in 100ns units, negative means relative timeout */
......
......@@ -565,6 +565,7 @@ static int send_thread_wakeup( struct thread *thread, client_ptr_t cookie, int s
struct wake_up_reply reply;
int ret;
memset( &reply, 0, sizeof(reply) );
reply.cookie = cookie;
reply.signaled = signaled;
if ((ret = write( get_unix_fd( thread->wait_fd ), &reply, sizeof(reply) )) == sizeof(reply))
......
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