diff options
author | Vincent Lucas <chenzo@jitsi.org> | 2013-03-02 22:49:55 +0000 |
---|---|---|
committer | Vincent Lucas <chenzo@jitsi.org> | 2013-03-02 22:49:55 +0000 |
commit | 10b5fa8e2f7d4f47ef3bfd6ebe1ee5624062201f (patch) | |
tree | 46fcb51c16fffce3b9b87b3399fc5c0a76aee408 /src/native/addrbook/msoutlook | |
parent | 67c6f7c3364b6b164a39c2eb16d9b3dcc710eab3 (diff) | |
download | jitsi-10b5fa8e2f7d4f47ef3bfd6ebe1ee5624062201f.zip jitsi-10b5fa8e2f7d4f47ef3bfd6ebe1ee5624062201f.tar.gz jitsi-10b5fa8e2f7d4f47ef3bfd6ebe1ee5624062201f.tar.bz2 |
Corrects redundant setting of current directory for jmsoutlookaddrbook.dll. Updates the dll (32 and 64 bits).
Diffstat (limited to 'src/native/addrbook/msoutlook')
-rw-r--r-- | src/native/addrbook/msoutlook/net_java_sip_communicator_plugin_addrbook_msoutlook_MsOutlookAddrBookContactSourceService.cxx | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/src/native/addrbook/msoutlook/net_java_sip_communicator_plugin_addrbook_msoutlook_MsOutlookAddrBookContactSourceService.cxx b/src/native/addrbook/msoutlook/net_java_sip_communicator_plugin_addrbook_msoutlook_MsOutlookAddrBookContactSourceService.cxx index fa37e95..aacc4bb 100644 --- a/src/native/addrbook/msoutlook/net_java_sip_communicator_plugin_addrbook_msoutlook_MsOutlookAddrBookContactSourceService.cxx +++ b/src/native/addrbook/msoutlook/net_java_sip_communicator_plugin_addrbook_msoutlook_MsOutlookAddrBookContactSourceService.cxx @@ -338,7 +338,6 @@ Java_net_java_sip_communicator_plugin_addrbook_msoutlook_MsOutlookAddrBookContac hResult
= MsOutlookAddrBookContactSourceService_mapiInitialize(
&mapiInit);
- ::SetCurrentDirectory(lpszWorkingDir);
if(HR_SUCCEEDED(hResult)
&& MAPISession_getMapiSession() == NULL)
@@ -356,6 +355,7 @@ Java_net_java_sip_communicator_plugin_addrbook_msoutlook_MsOutlookAddrBookContac mapiSession,
notificationsDelegate);
}
+ ::SetCurrentDirectory(lpszWorkingDir);
MAPISession_unlock();
}
else
@@ -489,34 +489,14 @@ MsOutlookAddrBook_mapiLogonEx hResult = S_OK;
else
{
- DWORD dwSize = ::GetCurrentDirectory(0, NULL);
- if (dwSize > 0)
- {
- LPTSTR lpszWorkingDir = (LPTSTR)::malloc(dwSize*sizeof(TCHAR));
- DWORD dwResult = ::GetCurrentDirectory(dwSize, lpszWorkingDir);
- if (dwResult != 0)
- {
- hResult
- = MsOutlookAddrBookContactSourceService_mapiLogonEx(
- uiParam,
- profileName, password,
- flags,
- ¤tMapiSession);
- ::SetCurrentDirectory(lpszWorkingDir);
-
- MAPISession_setMapiSession(currentMapiSession);
- }
- else
- {
- hResult = HRESULT_FROM_WIN32(::GetLastError());
- }
-
- ::free(lpszWorkingDir);
- }
- else
- {
- hResult = HRESULT_FROM_WIN32(::GetLastError());
- }
+ hResult
+ = MsOutlookAddrBookContactSourceService_mapiLogonEx(
+ uiParam,
+ profileName, password,
+ flags,
+ ¤tMapiSession);
+
+ MAPISession_setMapiSession(currentMapiSession);
}
if (HR_SUCCEEDED(hResult))
|