Fixes the issue with not creating the log file for Outlook COM server.

fix-message-formatting
hristoterezov 12 years ago
parent 7d4ad14af2
commit ce3dc088ce

@ -745,8 +745,8 @@ HRESULT MsOutlookAddrBookContactSourceService_startComServer(void)
appNameWithLogger
= (char*) malloc(
(FILENAME_MAX + loggerPathLenght) * sizeof(char));
sprintf(comServerWithLogger, "%s %s", comServer, loggerPath);
sprintf(appNameWithLogger, "%s %s", applicationName, loggerPath);
sprintf(comServerWithLogger, "%s \"%s\"", comServer, loggerPath);
sprintf(appNameWithLogger, "%s \"%s\"", applicationName, loggerPath);
}
else
{

@ -14,6 +14,7 @@
#include "../../MsOutlookUtils.h"
#include <stdio.h>
#include <string.h>
#include <TlHelp32.h>
#define MAPI_NO_COINIT 8
@ -33,7 +34,9 @@ int main(int argc, char** argv)
if(argc > 1)
{
MsOutlookUtils_createLogger("msoutlookaddrbook_server.log",argv[1]);
char* path = argv[1];
*(path + strlen(path) - 1) = '\\';
MsOutlookUtils_createLogger("msoutlookaddrbook_server.log", path);
}
MsOutlookUtils_log("Starting the Outlook Server.");

Loading…
Cancel
Save