summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-10 01:26:24 +0300
committeraunsane <aunsane@gmail.com>2018-03-10 01:26:55 +0300
commitb4706193c3adcce3f4dbbc5da7aae135b37855a8 (patch)
treedab333bceef93c519fd76425d4b114bba70cd7ea
parent42f152a35bbf1c62371099fa80a7967d0a4fca6b (diff)
fix build
-rw-r--r--include/m_plugin.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/m_plugin.h b/include/m_plugin.h
index e127cb28f4..95fc1a61cc 100644
--- a/include/m_plugin.h
+++ b/include/m_plugin.h
@@ -16,8 +16,8 @@ protected:
: m_moduleName(moduleName)
{
wchar_t path[MAX_PATH];
- mir_snwprintf(path, "%s\%s.txt", VARSW("%miranda_logpath%"), moduleName);
- m_hLogger = mir_createLog(moduleName, nullptr, path)
+ mir_snwprintf(path, L"%s\%s.txt", VARSW(L"%miranda_logpath%"), moduleName);
+ m_hLogger = mir_createLog(moduleName, nullptr, path, 0);
}
~PLUGIN()
@@ -32,7 +32,7 @@ protected:
{
va_list args;
va_start(args, szFormat);
- mir_writeLogVA(m_hLogger, args);
+ mir_writeLogVA(m_hLogger, szFormat, args);
va_end(args);
}
@@ -40,7 +40,7 @@ protected:
{
va_list args;
va_start(args, wszFormat);
- mir_writeLogVW(m_hLogger, args);
+ mir_writeLogVW(m_hLogger, wszFormat, args);
va_end(args);
}