mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +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)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
|
||||
RegisterPreviewControl(hInstDLL);
|
||||
// case DLL_THREAD_ATTACH:
|
||||
hApplet = hInstDLL;
|
||||
|
@ -221,6 +222,7 @@ DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
|
|||
|
||||
case DLL_PROCESS_DETACH:
|
||||
UnregisterPreviewControl(hInstDLL);
|
||||
CoUninitialize();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue