atl: Moved AtlRegisterTypeLib to atl.c to avoid importing atl80.dll in atl.dll.
This commit is contained in:
parent
f285b06738
commit
16acd97eb0
@ -1,6 +1,6 @@
|
|||||||
MODULE = atl.dll
|
MODULE = atl.dll
|
||||||
IMPORTLIB = atl
|
IMPORTLIB = atl
|
||||||
IMPORTS = uuid atl80 oleaut32 ole32 user32 gdi32 advapi32
|
IMPORTS = uuid oleaut32 ole32 user32 gdi32 advapi32
|
||||||
EXTRADEFS = -D_ATL_VER=_ATL_VER_30
|
EXTRADEFS = -D_ATL_VER=_ATL_VER_30
|
||||||
PARENTSRC = ../atl100
|
PARENTSRC = ../atl100
|
||||||
|
|
||||||
|
@ -396,6 +396,31 @@ HRESULT WINAPI AtlLoadTypeLib(HINSTANCE inst, LPCOLESTR lpszIndex,
|
|||||||
return S_OK;
|
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
|
#if _ATL_VER > _ATL_VER_30
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
@ -68,24 +68,3 @@ HRESULT WINAPI AtlComModuleRegisterServer(_ATL_COM_MODULE *mod, BOOL bRegTypeLib
|
|||||||
|
|
||||||
return S_OK;
|
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;
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user