Commit db9b557b authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

server: Make wparam and lparam values unsigned long for win64 compatability.

parent 38e74b31
......@@ -70,8 +70,8 @@ struct message
enum message_type type; /* message type */
user_handle_t win; /* window handle */
unsigned int msg; /* message code */
unsigned int wparam; /* parameters */
unsigned int lparam; /* parameters */
unsigned long wparam; /* parameters */
unsigned long lparam; /* parameters */
int x; /* x position */
int y; /* y position */
unsigned int time; /* message time */
......@@ -544,7 +544,7 @@ static struct message_result *alloc_message_result( struct msg_queue *send_queue
callback_msg->type = MSG_CALLBACK_RESULT;
callback_msg->win = msg->win;
callback_msg->msg = msg->msg;
callback_msg->wparam = (unsigned int)callback;
callback_msg->wparam = (unsigned long)callback;
callback_msg->lparam = 0;
callback_msg->time = get_tick_count();
callback_msg->x = 0;
......@@ -1446,7 +1446,7 @@ void queue_cleanup_window( struct thread *thread, user_handle_t win )
/* post a message to a window; used by socket handling */
void post_message( user_handle_t win, unsigned int message,
unsigned int wparam, unsigned int lparam )
unsigned long wparam, unsigned long lparam )
{
struct message *msg;
struct thread *thread = get_window_thread( win );
......
......@@ -276,7 +276,7 @@ static void sock_wake_up( struct sock *sock, int pollev )
if (sock->pmask & (1 << event))
{
unsigned int lparam = (1 << event) | (sock->errors[event] << 16);
post_message( sock->window, sock->message, (unsigned int)sock->wparam, lparam );
post_message( sock->window, sock->message, (unsigned long)sock->wparam, lparam );
}
}
sock->pmask = 0;
......
......@@ -91,7 +91,7 @@ extern int init_thread_queue( struct thread *thread );
extern int attach_thread_input( struct thread *thread_from, struct thread *thread_to );
extern void detach_thread_input( struct thread *thread_from );
extern void post_message( user_handle_t win, unsigned int message,
unsigned int wparam, unsigned int lparam );
unsigned long wparam, unsigned long lparam );
extern void post_win_event( struct thread *thread, unsigned int event,
user_handle_t win, unsigned int object_id,
unsigned int child_id, void *proc,
......
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