Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4261476d
Commit
4261476d
authored
Dec 30, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Make the message callback function a client_ptr_t instead of a void pointer.
parent
656b6273
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
message.c
dlls/user32/message.c
+2
-2
server_protocol.h
include/wine/server_protocol.h
+2
-2
protocol.def
server/protocol.def
+1
-1
No files found.
dlls/user32/message.c
View file @
4261476d
...
...
@@ -2096,7 +2096,7 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags
if
(
size
>=
sizeof
(
struct
callback_msg_data
))
{
const
struct
callback_msg_data
*
data
=
buffer
;
call_sendmsg_callback
(
data
->
callback
,
info
.
msg
.
hwnd
,
call_sendmsg_callback
(
wine_server_get_ptr
(
data
->
callback
)
,
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
data
->
data
,
data
->
result
);
}
continue
;
...
...
@@ -2333,7 +2333,7 @@ static BOOL put_message_in_queue( const struct send_message_info *info, size_t *
}
else
if
(
info
->
type
==
MSG_CALLBACK
)
{
msg_data
.
callback
.
callback
=
info
->
callback
;
msg_data
.
callback
.
callback
=
wine_server_client_ptr
(
info
->
callback
)
;
msg_data
.
callback
.
data
=
info
->
data
;
msg_data
.
callback
.
result
=
0
;
data
.
data
[
0
]
=
&
msg_data
;
...
...
include/wine/server_protocol.h
View file @
4261476d
...
...
@@ -184,7 +184,7 @@ struct hardware_msg_data
struct
callback_msg_data
{
void
*
callback
;
client_ptr_t
callback
;
lparam_t
data
;
lparam_t
result
;
};
...
...
@@ -5052,6 +5052,6 @@ union generic_reply
struct
set_window_layered_info_reply
set_window_layered_info_reply
;
};
#define SERVER_PROTOCOL_VERSION 36
3
#define SERVER_PROTOCOL_VERSION 36
4
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
4261476d
...
...
@@ -200,7 +200,7 @@ struct hardware_msg_data
struct callback_msg_data
{
void *
callback; /* callback function */
client_ptr_t
callback; /* callback function */
lparam_t data; /* user data for callback */
lparam_t result; /* message result */
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment