mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
Initialize the COM library
svn path=/trunk/; revision=29667
This commit is contained in:
parent
509bef7801
commit
c573ed42b0
1 changed files with 2 additions and 0 deletions
|
@ -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