diff options
Diffstat (limited to 'src/native/addrbook/msoutlook/com/ComClient.cxx')
-rw-r--r-- | src/native/addrbook/msoutlook/com/ComClient.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/native/addrbook/msoutlook/com/ComClient.cxx b/src/native/addrbook/msoutlook/com/ComClient.cxx index b13dcf3..4c3dfcf 100644 --- a/src/native/addrbook/msoutlook/com/ComClient.cxx +++ b/src/native/addrbook/msoutlook/com/ComClient.cxx @@ -43,7 +43,8 @@ void ComClient_start(void) { HRESULT hr = E_FAIL; - if(CoInitializeEx(NULL, COINIT_MULTITHREADED) == S_OK) + if((hr = CoInitializeEx(NULL, COINIT_MULTITHREADED)) == S_OK + || hr == S_FALSE) { // The server may be long to start, then retry 10 times with 1s pause // between each try. |