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
d37b69cd
Commit
d37b69cd
authored
Oct 14, 1998
by
Alex Korobka
Committed by
Alexandre Julliard
Oct 14, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better QUEUE_FlushMessages().
parent
4a150e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
queue.c
windows/queue.c
+9
-2
No files found.
windows/queue.c
View file @
d37b69cd
...
...
@@ -435,8 +435,15 @@ void QUEUE_FlushMessages( HQUEUE16 hQueue )
MESSAGEQUEUE
*
senderQ
=
(
MESSAGEQUEUE
*
)
GlobalLock16
(
queue
->
hSendingTask
);
QSMCTRL
*
CtrlPtr
=
queue
->
smResultCurrent
;
TRACE
(
msg
,
"Flushing queue %04x:
\n
"
,
hQueue
);
while
(
senderQ
)
{
if
(
!
CtrlPtr
)
CtrlPtr
=
senderQ
->
smResultInit
;
TRACE
(
msg
,
"
\t
from queue %04x, smResult %08x
\n
"
,
queue
->
hSendingTask
,
(
unsigned
)
CtrlPtr
);
if
(
!
(
queue
->
hSendingTask
=
senderQ
->
hPrevSendingTask
)
)
queue
->
wakeBits
&=
~
QS_SENDMESSAGE
;
QUEUE_SetWakeBit
(
senderQ
,
QS_SMPARAMSFREE
);
...
...
@@ -448,8 +455,8 @@ void QUEUE_FlushMessages( HQUEUE16 hQueue )
senderQ
->
smResult
=
queue
->
smResultCurrent
;
QUEUE_SetWakeBit
(
senderQ
,
QS_SMRESULT
);
if
(
(
senderQ
=
(
MESSAGEQUEUE
*
)
GlobalLock16
(
queue
->
hSendingTask
))
)
CtrlPtr
=
senderQ
->
smResultInit
;
senderQ
=
(
MESSAGEQUEUE
*
)
GlobalLock16
(
queue
->
hSendingTask
);
CtrlPtr
=
NULL
;
}
queue
->
InSendMessageHandle
=
0
;
}
...
...
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