server: Make padding explicit in the wake_up_reply structure.
This commit is contained in:
parent
838803ce24
commit
7560a89022
|
@ -137,6 +137,7 @@ struct wake_up_reply
|
||||||
{
|
{
|
||||||
client_ptr_t cookie;
|
client_ptr_t cookie;
|
||||||
int signaled;
|
int signaled;
|
||||||
|
int __pad;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -5058,6 +5059,6 @@ union generic_reply
|
||||||
struct set_window_layered_info_reply set_window_layered_info_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 */
|
#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 */
|
client_ptr_t cookie; /* magic cookie that was passed in select_request */
|
||||||
int signaled; /* wait result */
|
int signaled; /* wait result */
|
||||||
|
int __pad;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* NT-style timeout, in 100ns units, negative means relative timeout */
|
/* 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;
|
struct wake_up_reply reply;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
memset( &reply, 0, sizeof(reply) );
|
||||||
reply.cookie = cookie;
|
reply.cookie = cookie;
|
||||||
reply.signaled = signaled;
|
reply.signaled = signaled;
|
||||||
if ((ret = write( get_unix_fd( thread->wait_fd ), &reply, sizeof(reply) )) == sizeof(reply))
|
if ((ret = write( get_unix_fd( thread->wait_fd ), &reply, sizeof(reply) )) == sizeof(reply))
|
||||||
|
|
Loading…
Reference in New Issue