Author: weiden
Date: Fri Oct 19 06:16:54 2007
New Revision: 29667
URL:
http://svn.reactos.org/svn/reactos?rev=29667&view=rev
Log:
Initialize the COM library
Modified:
trunk/reactos/dll/cpl/desk/desk.c
Modified: trunk/reactos/dll/cpl/desk/desk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/desk.c?rev=29…
==============================================================================
--- trunk/reactos/dll/cpl/desk/desk.c (original)
+++ trunk/reactos/dll/cpl/desk/desk.c Fri Oct 19 06:16:54 2007
@@ -214,6 +214,7 @@
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
+ CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
RegisterPreviewControl(hInstDLL);
// case DLL_THREAD_ATTACH:
hApplet = hInstDLL;
@@ -221,6 +222,7 @@
case DLL_PROCESS_DETACH:
UnregisterPreviewControl(hInstDLL);
+ CoUninitialize();
break;
}