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
7b2eafbc
Commit
7b2eafbc
authored
Oct 21, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix tick counter wrap-around handling.
parent
5435dad9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
dde_client.c
dlls/user32/dde_client.c
+4
-6
No files found.
dlls/user32/dde_client.c
View file @
7b2eafbc
...
@@ -1017,22 +1017,20 @@ static WDML_QUEUE_STATE WDML_HandleReply(WDML_CONV* pConv, MSG* msg, HDDEDATA* h
...
@@ -1017,22 +1017,20 @@ static WDML_QUEUE_STATE WDML_HandleReply(WDML_CONV* pConv, MSG* msg, HDDEDATA* h
*/
*/
static
HDDEDATA
WDML_SyncWaitTransactionReply
(
HCONV
hConv
,
DWORD
dwTimeout
,
const
WDML_XACT
*
pXAct
,
DWORD
*
ack
)
static
HDDEDATA
WDML_SyncWaitTransactionReply
(
HCONV
hConv
,
DWORD
dwTimeout
,
const
WDML_XACT
*
pXAct
,
DWORD
*
ack
)
{
{
DWORD
dwTime
;
DWORD
start
,
elapsed
;
DWORD
err
;
DWORD
err
;
WDML_CONV
*
pConv
;
WDML_CONV
*
pConv
;
TRACE
(
"Starting wait for a timeout of %d ms
\n
"
,
dwTimeout
);
TRACE
(
"Starting wait for a timeout of %d ms
\n
"
,
dwTimeout
);
/* FIXME: time 32 bit wrap around */
start
=
GetTickCount
();
dwTimeout
+=
GetCurrentTime
();
while
((
elapsed
=
GetTickCount
()
-
start
)
<
dwTimeout
)
while
((
dwTime
=
GetCurrentTime
())
<
dwTimeout
)
{
{
/* we cannot be in the crit sect all the time because when client and server run in a
/* we cannot be in the crit sect all the time because when client and server run in a
* single process they need to share the access to the internal data
* single process they need to share the access to the internal data
*/
*/
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
if
(
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
dwTimeout
-
dwTime
,
QS_POSTMESSAGE
)
==
WAIT_OBJECT_0
)
dwTimeout
-
elapsed
,
QS_POSTMESSAGE
)
==
WAIT_OBJECT_0
)
{
{
MSG
msg
;
MSG
msg
;
...
...
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