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
9da8128e
Commit
9da8128e
authored
Dec 26, 2005
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Dec 26, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Implement AtlComPtrAssign.
According to MSDN AtlModuleInit should initialize the modules critical sections.
parent
4d05f244
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
atl.spec
dlls/atl/atl.spec
+1
-1
atl_main.c
dlls/atl/atl_main.c
+15
-0
No files found.
dlls/atl/atl.spec
View file @
9da8128e
...
...
@@ -22,7 +22,7 @@
27 stub AtlHiMetricToPixel
28 stub AtlPixelToHiMetric
29 stub AtlDevModeW2A
30 st
ub AtlComPtrAssign
30 st
dcall AtlComPtrAssign(ptr ptr)
31 stub AtlComQIPtrAssign
32 stdcall AtlInternalQueryInterface(ptr ptr ptr ptr)
34 stub AtlGetVersion
...
...
dlls/atl/atl_main.c
View file @
9da8128e
...
...
@@ -73,6 +73,10 @@ HRESULT WINAPI AtlModuleInit(_ATL_MODULEA* pM, _ATL_OBJMAP_ENTRYA* p, HINSTANCE
pM
->
m_pObjMap
=
p
;
pM
->
m_hHeap
=
GetProcessHeap
();
InitializeCriticalSection
(
&
pM
->
u
.
m_csTypeInfoHolder
);
InitializeCriticalSection
(
&
pM
->
m_csWindowCreate
);
InitializeCriticalSection
(
&
pM
->
m_csObjMap
);
/* call mains */
i
=
0
;
if
(
pM
->
m_pObjMap
!=
NULL
&&
size
>
ATLVer1Size
)
...
...
@@ -181,6 +185,17 @@ BOOL WINAPI AtlAxWinInit(void)
}
IUnknown
*
WINAPI
AtlComPtrAssign
(
IUnknown
**
pp
,
IUnknown
*
p
)
{
TRACE
(
"(%p %p)
\n
"
,
pp
,
p
);
if
(
p
)
IUnknown_AddRef
(
p
);
if
(
*
pp
)
IUnknown_Release
(
*
pp
);
*
pp
=
p
;
return
p
;
}
HRESULT
WINAPI
AtlInternalQueryInterface
(
LPVOID
this
,
const
_ATL_INTMAP_ENTRY
*
pEntries
,
REFIID
iid
,
LPVOID
*
ppvObject
)
{
int
i
=
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