Commit 6a3f4b8e authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

strmbase: Remove no longer necessary call to CoInitialize().

parent ae5f9454
...@@ -149,8 +149,6 @@ HRESULT WINAPI AMovieDllRegisterServer2(BOOL bRegister) ...@@ -149,8 +149,6 @@ HRESULT WINAPI AMovieDllRegisterServer2(BOOL bRegister)
if (bRegister) if (bRegister)
hr = SetupRegisterAllClasses(g_Templates, g_cTemplates, szFileName, TRUE ); hr = SetupRegisterAllClasses(g_Templates, g_cTemplates, szFileName, TRUE );
CoInitialize(NULL);
TRACE("Getting IFilterMapper2\r\n"); TRACE("Getting IFilterMapper2\r\n");
hr = CoCreateInstance(&CLSID_FilterMapper2, NULL, CLSCTX_INPROC_SERVER, hr = CoCreateInstance(&CLSID_FilterMapper2, NULL, CLSCTX_INPROC_SERVER,
&IID_IFilterMapper2, (void **)&pIFM2); &IID_IFilterMapper2, (void **)&pIFM2);
...@@ -162,10 +160,6 @@ HRESULT WINAPI AMovieDllRegisterServer2(BOOL bRegister) ...@@ -162,10 +160,6 @@ HRESULT WINAPI AMovieDllRegisterServer2(BOOL bRegister)
if (pIFM2) if (pIFM2)
IFilterMapper2_Release(pIFM2); IFilterMapper2_Release(pIFM2);
/* and clear up */
CoFreeUnusedLibraries();
CoUninitialize();
/* if unregistering, unregister all OLE servers */ /* if unregistering, unregister all OLE servers */
if (SUCCEEDED(hr) && !bRegister) if (SUCCEEDED(hr) && !bRegister)
hr = SetupRegisterAllClasses(g_Templates, g_cTemplates, szFileName, FALSE); hr = SetupRegisterAllClasses(g_Templates, g_cTemplates, szFileName, FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment