Commit d3fbd5ba authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-924 Fix mapi_last_hresult() calls.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 42bf4255
...@@ -508,12 +508,12 @@ class Kopano extends SyncWorker { ...@@ -508,12 +508,12 @@ class Kopano extends SyncWorker {
$entryid = @mapi_msgstore_createentryid($this->defaultstore, $user); $entryid = @mapi_msgstore_createentryid($this->defaultstore, $user);
if(!$entryid) { if(!$entryid) {
$this->Terminate(sprintf("Kopano->openMessageStore(): No store found for user '%s': 0x%08X - Aborting.", $user, mapi_last_hresult)); $this->Terminate(sprintf("Kopano->openMessageStore(): No store found for user '%s': 0x%08X - Aborting.", $user, mapi_last_hresult()));
} }
$store = @mapi_openmsgstore($this->session, $entryid); $store = @mapi_openmsgstore($this->session, $entryid);
if (!$store) { if (!$store) {
$this->Terminate(sprintf("Kopano->openMessageStore(): Could not open store for '%s': 0x%08X - Aborting.", $user, mapi_last_hresult)); $this->Terminate(sprintf("Kopano->openMessageStore(): Could not open store for '%s': 0x%08X - Aborting.", $user, mapi_last_hresult()));
} }
$this->Log(sprintf("Kopano->openMessageStore(): Found '%s' store of user '%s': '%s'", (($return_public)?'PUBLIC':'DEFAULT'), $user, $store)); $this->Log(sprintf("Kopano->openMessageStore(): Found '%s' store of user '%s': '%s'", (($return_public)?'PUBLIC':'DEFAULT'), $user, $store));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment