Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b1095da5
Commit
b1095da5
authored
Mar 19, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug that could cause SendMessage to return too early in certain
cases.
parent
6da4c275
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
message.c
dlls/user/message.c
+2
-0
server_protocol.h
include/wine/server_protocol.h
+2
-1
protocol.def
server/protocol.def
+1
-0
queue.c
server/queue.c
+4
-4
trace.c
server/trace.c
+1
-0
No files found.
dlls/user/message.c
View file @
b1095da5
...
...
@@ -1026,6 +1026,7 @@ static void reply_message( struct received_message_info *info, LRESULT result, B
SERVER_START_REQ
(
reply_message
)
{
req
->
type
=
info
->
type
;
req
->
result
=
result
;
req
->
remove
=
remove
;
for
(
i
=
0
;
i
<
data
.
count
;
i
++
)
wine_server_add_data
(
req
,
data
.
data
[
i
],
data
.
size
[
i
]
);
...
...
@@ -1407,6 +1408,7 @@ static BOOL process_hardware_message( MSG *msg, ULONG_PTR extra_info, HWND hwnd,
*/
SERVER_START_REQ
(
reply_message
)
{
req
->
type
=
MSG_HARDWARE
;
req
->
result
=
0
;
req
->
remove
=
remove
||
!
ret
;
wine_server_call
(
req
);
...
...
include/wine/server_protocol.h
View file @
b1095da5
...
...
@@ -2237,6 +2237,7 @@ struct get_message_reply
struct
reply_message_request
{
struct
request_header
__header
;
int
type
;
unsigned
int
result
;
int
remove
;
/* VARARG(data,bytes); */
...
...
@@ -3555,6 +3556,6 @@ union generic_reply
struct
get_next_hook_reply
get_next_hook_reply
;
};
#define SERVER_PROTOCOL_VERSION 10
0
#define SERVER_PROTOCOL_VERSION 10
1
#endif
/* __WINE_WINE_SERVER_PROTOCOL_H */
server/protocol.def
View file @
b1095da5
...
...
@@ -1589,6 +1589,7 @@ enum message_type
/* Reply to a sent message */
@REQ(reply_message)
int type; /* type of original message */
unsigned int result; /* message result */
int remove; /* should we remove the message? */
VARARG(data,bytes); /* message data for sent messages */
...
...
server/queue.c
View file @
b1095da5
...
...
@@ -1380,15 +1380,15 @@ DECL_HANDLER(reply_message)
set_error
(
STATUS_ACCESS_DENIED
);
return
;
}
if
(
current
->
queue
->
recv_result
)
reply_message
(
current
->
queue
,
req
->
result
,
0
,
req
->
remove
,
get_req_data
(),
get_req_data_size
()
);
else
if
(
req
->
type
==
MSG_HARDWARE
)
{
struct
thread_input
*
input
=
current
->
queue
->
input
;
if
(
input
->
msg_thread
==
current
)
release_hardware_message
(
current
,
req
->
remove
);
else
set_error
(
STATUS_ACCESS_DENIED
);
}
else
if
(
current
->
queue
->
recv_result
)
reply_message
(
current
->
queue
,
req
->
result
,
0
,
req
->
remove
,
get_req_data
(),
get_req_data_size
()
);
}
...
...
server/trace.c
View file @
b1095da5
...
...
@@ -1835,6 +1835,7 @@ static void dump_get_message_reply( const struct get_message_reply *req )
static
void
dump_reply_message_request
(
const
struct
reply_message_request
*
req
)
{
fprintf
(
stderr
,
" type=%d,"
,
req
->
type
);
fprintf
(
stderr
,
" result=%08x,"
,
req
->
result
);
fprintf
(
stderr
,
" remove=%d,"
,
req
->
remove
);
fprintf
(
stderr
,
" data="
);
...
...
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