From 7377a06bcad6b7269af4c2355558fe95204107f2 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 24 Mar 2006 07:37:27 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=9722 --- checkin_notes | 6 ++++++ clientlib/win/boinc_dll.cpp | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/checkin_notes b/checkin_notes index ea96606e00..61ac555cb5 100755 --- a/checkin_notes +++ b/checkin_notes @@ -3193,3 +3193,9 @@ David 23 Mar 2006 tools/ make_project + +Rom 23 Mar 2006 + - Bug Fix: Fix a COM initialization error within BOINC DLL. + + clientlib/lib/ + boinc_dll.cpp diff --git a/clientlib/win/boinc_dll.cpp b/clientlib/win/boinc_dll.cpp index 06de0508cb..3258280c34 100755 --- a/clientlib/win/boinc_dll.cpp +++ b/clientlib/win/boinc_dll.cpp @@ -40,6 +40,11 @@ public: EXTERN_C __declspec(dllexport) BOOL ClientLibraryStartup() { + + // Startup the COM Framework + if (FAILED(CoInitializeEx(NULL, NULL))) + return FALSE; + if (!IdleTrackerStartup()) return FALSE; if (IsWindows2000Compatible()) { @@ -56,5 +61,8 @@ EXTERN_C __declspec(dllexport) void ClientLibraryShutdown() if (IsWindows2000Compatible()) { NetworkTrackerShutdown(); } + + // Cleanup the COM Framework. + CoUninitialize(); }