mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +00:00
Initialize the COM library
svn path=/trunk/; revision=29667
This commit is contained in:
parent
509bef7801
commit
c573ed42b0
|
@ -214,6 +214,7 @@ DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
|
||||||
switch (dwReason)
|
switch (dwReason)
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
|
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
|
||||||
RegisterPreviewControl(hInstDLL);
|
RegisterPreviewControl(hInstDLL);
|
||||||
// case DLL_THREAD_ATTACH:
|
// case DLL_THREAD_ATTACH:
|
||||||
hApplet = hInstDLL;
|
hApplet = hInstDLL;
|
||||||
|
@ -221,6 +222,7 @@ DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
|
||||||
|
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
UnregisterPreviewControl(hInstDLL);
|
UnregisterPreviewControl(hInstDLL);
|
||||||
|
CoUninitialize();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue