server: Make wparam and lparam values unsigned long for win64 compatability.
This commit is contained in:
parent
38e74b3111
commit
db9b557b54
|
@ -70,8 +70,8 @@ struct message
|
||||||
enum message_type type; /* message type */
|
enum message_type type; /* message type */
|
||||||
user_handle_t win; /* window handle */
|
user_handle_t win; /* window handle */
|
||||||
unsigned int msg; /* message code */
|
unsigned int msg; /* message code */
|
||||||
unsigned int wparam; /* parameters */
|
unsigned long wparam; /* parameters */
|
||||||
unsigned int lparam; /* parameters */
|
unsigned long lparam; /* parameters */
|
||||||
int x; /* x position */
|
int x; /* x position */
|
||||||
int y; /* y position */
|
int y; /* y position */
|
||||||
unsigned int time; /* message time */
|
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->type = MSG_CALLBACK_RESULT;
|
||||||
callback_msg->win = msg->win;
|
callback_msg->win = msg->win;
|
||||||
callback_msg->msg = msg->msg;
|
callback_msg->msg = msg->msg;
|
||||||
callback_msg->wparam = (unsigned int)callback;
|
callback_msg->wparam = (unsigned long)callback;
|
||||||
callback_msg->lparam = 0;
|
callback_msg->lparam = 0;
|
||||||
callback_msg->time = get_tick_count();
|
callback_msg->time = get_tick_count();
|
||||||
callback_msg->x = 0;
|
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 */
|
/* post a message to a window; used by socket handling */
|
||||||
void post_message( user_handle_t win, unsigned int message,
|
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 message *msg;
|
||||||
struct thread *thread = get_window_thread( win );
|
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))
|
if (sock->pmask & (1 << event))
|
||||||
{
|
{
|
||||||
unsigned int lparam = (1 << event) | (sock->errors[event] << 16);
|
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;
|
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 int attach_thread_input( struct thread *thread_from, struct thread *thread_to );
|
||||||
extern void detach_thread_input( struct thread *thread_from );
|
extern void detach_thread_input( struct thread *thread_from );
|
||||||
extern void post_message( user_handle_t win, unsigned int message,
|
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,
|
extern void post_win_event( struct thread *thread, unsigned int event,
|
||||||
user_handle_t win, unsigned int object_id,
|
user_handle_t win, unsigned int object_id,
|
||||||
unsigned int child_id, void *proc,
|
unsigned int child_id, void *proc,
|
||||||
|
|
Loading…
Reference in New Issue