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
8dc7a72a
Commit
8dc7a72a
authored
Dec 27, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Added locking to AtlModuleExtractCreateWndData.
parent
dc160df8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
atl_main.c
dlls/atl/atl_main.c
+9
-4
No files found.
dlls/atl/atl_main.c
View file @
8dc7a72a
...
@@ -440,27 +440,32 @@ void WINAPI AtlModuleAddCreateWndData(_ATL_MODULEW *pM, _AtlCreateWndData *pData
...
@@ -440,27 +440,32 @@ void WINAPI AtlModuleAddCreateWndData(_ATL_MODULEW *pM, _AtlCreateWndData *pData
/***********************************************************************
/***********************************************************************
* AtlModuleExtractCreateWndData [ATL.@]
* AtlModuleExtractCreateWndData [ATL.@]
*
*
* NOTE: I failed to find any good description of this function.
* NOTE: Tests show that this function extracts one of _AtlCreateWndData
* Tests show that this function extracts one of _AtlCreateWndData
* records from the current thread from a list
* records from the current thread from a list
*
*
*/
*/
void
*
WINAPI
AtlModuleExtractCreateWndData
(
_ATL_MODULEW
*
pM
)
void
*
WINAPI
AtlModuleExtractCreateWndData
(
_ATL_MODULEW
*
pM
)
{
{
_AtlCreateWndData
**
ppData
;
_AtlCreateWndData
**
ppData
;
void
*
ret
=
NULL
;
TRACE
(
"(%p)
\n
"
,
pM
);
TRACE
(
"(%p)
\n
"
,
pM
);
EnterCriticalSection
(
&
pM
->
m_csWindowCreate
);
for
(
ppData
=
&
pM
->
m_pCreateWndList
;
*
ppData
!=
NULL
;
ppData
=
&
(
*
ppData
)
->
m_pNext
)
for
(
ppData
=
&
pM
->
m_pCreateWndList
;
*
ppData
!=
NULL
;
ppData
=
&
(
*
ppData
)
->
m_pNext
)
{
{
if
((
*
ppData
)
->
m_dwThreadID
==
GetCurrentThreadId
())
if
((
*
ppData
)
->
m_dwThreadID
==
GetCurrentThreadId
())
{
{
_AtlCreateWndData
*
pData
=
*
ppData
;
_AtlCreateWndData
*
pData
=
*
ppData
;
*
ppData
=
pData
->
m_pNext
;
*
ppData
=
pData
->
m_pNext
;
return
pData
->
m_pThis
;
ret
=
pData
->
m_pThis
;
break
;
}
}
}
}
return
NULL
;
LeaveCriticalSection
(
&
pM
->
m_csWindowCreate
);
return
ret
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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