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
16acd97e
Commit
16acd97e
authored
Feb 13, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Moved AtlRegisterTypeLib to atl.c to avoid importing atl80.dll in atl.dll.
parent
f285b067
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
22 deletions
+26
-22
Makefile.in
dlls/atl/Makefile.in
+1
-1
atl.c
dlls/atl100/atl.c
+25
-0
atl80.c
dlls/atl80/atl80.c
+0
-21
No files found.
dlls/atl/Makefile.in
View file @
16acd97e
MODULE
=
atl.dll
IMPORTLIB
=
atl
IMPORTS
=
uuid
atl80
oleaut32 ole32 user32 gdi32 advapi32
IMPORTS
=
uuid oleaut32 ole32 user32 gdi32 advapi32
EXTRADEFS
=
-D_ATL_VER
=
_ATL_VER_30
PARENTSRC
=
../atl100
...
...
dlls/atl100/atl.c
View file @
16acd97e
...
...
@@ -396,6 +396,31 @@ HRESULT WINAPI AtlLoadTypeLib(HINSTANCE inst, LPCOLESTR lpszIndex,
return
S_OK
;
}
#if _ATL_VER <= _ATL_VER_80
/***********************************************************************
* AtlRegisterTypeLib [atl80.19]
*/
HRESULT
WINAPI
AtlRegisterTypeLib
(
HINSTANCE
inst
,
const
WCHAR
*
index
)
{
ITypeLib
*
typelib
;
BSTR
path
;
HRESULT
hres
;
TRACE
(
"(%p %s)
\n
"
,
inst
,
debugstr_w
(
index
));
hres
=
AtlLoadTypeLib
(
inst
,
index
,
&
path
,
&
typelib
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
RegisterTypeLib
(
typelib
,
path
,
NULL
);
/* FIXME: pass help directory */
ITypeLib_Release
(
typelib
);
SysFreeString
(
path
);
return
hres
;
}
#endif
#if _ATL_VER > _ATL_VER_30
/***********************************************************************
...
...
dlls/atl80/atl80.c
View file @
16acd97e
...
...
@@ -68,24 +68,3 @@ HRESULT WINAPI AtlComModuleRegisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeLib
return
S_OK
;
}
/***********************************************************************
* AtlRegisterTypeLib [atl80.19]
*/
HRESULT
WINAPI
AtlRegisterTypeLib
(
HINSTANCE
inst
,
const
WCHAR
*
index
)
{
ITypeLib
*
typelib
;
BSTR
path
;
HRESULT
hres
;
TRACE
(
"(%p %s)
\n
"
,
inst
,
debugstr_w
(
index
));
hres
=
AtlLoadTypeLib
(
inst
,
index
,
&
path
,
&
typelib
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
RegisterTypeLib
(
typelib
,
path
,
NULL
);
/* FIXME: pass help directory */
ITypeLib_Release
(
typelib
);
SysFreeString
(
path
);
return
hres
;
}
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