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
84bb5969
Commit
84bb5969
authored
Aug 17, 2012
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fixed two use-after-free (Coverity).
parent
3fb8a426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
dde_client.c
dlls/user32/dde_client.c
+11
-4
No files found.
dlls/user32/dde_client.c
View file @
84bb5969
...
...
@@ -1246,14 +1246,18 @@ BOOL WINAPI DdeAbandonTransaction(DWORD idInst, HCONV hConv, DWORD idTransaction
{
if
((
pConv
=
WDML_GetConv
(
hConv
,
TRUE
))
&&
pConv
->
instance
==
pInstance
)
{
for
(
pXAct
=
pConv
->
transactions
;
pXAct
;
pXAct
=
pXAct
->
next
)
{
pXAct
=
pConv
->
transactions
;
while
(
pXAct
)
{
WDML_XACT
*
nextXAct
=
pXAct
->
next
;
if
(
pXAct
->
dwTimeout
==
TIMEOUT_ASYNC
&&
(
idTransaction
==
0
||
pXAct
->
xActID
==
idTransaction
))
{
WDML_UnQueueTransaction
(
pConv
,
pXAct
);
WDML_FreeTransaction
(
pInstance
,
pXAct
,
TRUE
);
}
pXAct
=
nextXAct
;
}
}
}
...
...
@@ -1262,13 +1266,16 @@ BOOL WINAPI DdeAbandonTransaction(DWORD idInst, HCONV hConv, DWORD idTransaction
for
(
pConv
=
pInstance
->
convs
[
WDML_CLIENT_SIDE
];
pConv
;
pConv
=
pConv
->
next
)
{
if
(
!
(
pConv
->
wStatus
&
ST_CONNECTED
))
continue
;
for
(
pXAct
=
pConv
->
transactions
;
pXAct
;
pXAct
=
pXAct
->
next
)
{
pXAct
=
pConv
->
transactions
;
while
(
pXAct
)
{
WDML_XACT
*
nextXAct
=
pXAct
->
next
;
if
(
pXAct
->
dwTimeout
==
TIMEOUT_ASYNC
)
{
WDML_UnQueueTransaction
(
pConv
,
pXAct
);
WDML_FreeTransaction
(
pInstance
,
pXAct
,
TRUE
);
}
pXAct
=
nextXAct
;
}
}
}
...
...
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