server: Make padding explicit in the wake_up_reply structure.

This commit is contained in:
Alexandre Julliard 2008-12-30 15:15:06 +01:00
parent 838803ce24
commit 7560a89022
3 changed files with 4 additions and 1 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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))