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
a54da42e
Commit
a54da42e
authored
Oct 06, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added AtlModuleAddTermFunc implementation.
parent
83a1b978
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
atl.spec
dlls/atl/atl.spec
+1
-1
atl_main.c
dlls/atl/atl_main.c
+28
-0
atlbase.h
dlls/atl/atlbase.h
+1
-0
No files found.
dlls/atl/atl.spec
View file @
a54da42e
...
...
@@ -49,4 +49,4 @@
55 stub AtlModuleUnRegisterTypeLib
56 stub AtlModuleLoadTypeLib
57 stdcall AtlModuleUnregisterServerEx(ptr long ptr)
58 st
ub AtlModuleAddTermFunc
58 st
dcall AtlModuleAddTermFunc(ptr ptr long)
dlls/atl/atl_main.c
View file @
a54da42e
...
...
@@ -91,7 +91,35 @@ HRESULT WINAPI AtlModuleInit(_ATL_MODULEA* pM, _ATL_OBJMAP_ENTRYA* p, HINSTANCE
HRESULT
WINAPI
AtlModuleTerm
(
_ATL_MODULEA
*
pM
)
{
_ATL_TERMFUNC_ELEM
*
iter
=
pM
->
m_pTermFuncs
,
*
tmp
;
TRACE
(
"(%p)
\n
"
,
pM
);
while
(
iter
)
{
iter
->
pFunc
(
iter
->
dw
);
tmp
=
iter
;
iter
=
iter
->
pNext
;
HeapFree
(
GetProcessHeap
(),
0
,
tmp
);
}
HeapFree
(
GetProcessHeap
(),
0
,
pM
);
return
S_OK
;
}
HRESULT
WINAPI
AtlModuleAddTermFunc
(
_ATL_MODULEW
*
pM
,
_ATL_TERMFUNC
pFunc
,
DWORD
dw
)
{
_ATL_TERMFUNC_ELEM
*
termfunc_elem
;
TRACE
(
"(%p %p %ld)
\n
"
,
pM
,
pFunc
,
dw
);
termfunc_elem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
_ATL_TERMFUNC_ELEM
));
termfunc_elem
->
pFunc
=
pFunc
;
termfunc_elem
->
dw
=
dw
;
termfunc_elem
->
pNext
=
pM
->
m_pTermFuncs
;
pM
->
m_pTermFuncs
=
termfunc_elem
;
return
S_OK
;
}
...
...
dlls/atl/atlbase.h
View file @
a54da42e
...
...
@@ -145,6 +145,7 @@ HRESULT WINAPI AtlAdvise(IUnknown *pUnkCP, IUnknown *pUnk, const IID * iid, LPDW
HRESULT
WINAPI
AtlFreeMarshalStream
(
IStream
*
pStream
);
HRESULT
WINAPI
AtlInternalQueryInterface
(
LPVOID
pThis
,
const
_ATL_INTMAP_ENTRY
*
pEntries
,
REFIID
iid
,
LPVOID
*
ppvObject
);
HRESULT
WINAPI
AtlMarshalPtrInProc
(
IUnknown
*
pUnk
,
const
IID
*
iid
,
IStream
**
ppStream
);
HRESULT
WINAPI
AtlModuleAddTermFunc
(
_ATL_MODULEW
*
pM
,
_ATL_TERMFUNC
pFunc
,
DWORD
dw
);
HRESULT
WINAPI
AtlModuleInit
(
_ATL_MODULEA
*
pM
,
_ATL_OBJMAP_ENTRYA
*
p
,
HINSTANCE
h
);
HRESULT
WINAPI
AtlModuleRegisterClassObjects
(
_ATL_MODULEA
*
pM
,
DWORD
dwClsContext
,
DWORD
dwFlags
);
HRESULT
WINAPI
AtlModuleRegisterServer
(
_ATL_MODULEW
*
pM
,
BOOL
bRegTypeLib
,
const
CLSID
*
pCLSID
);
...
...
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