summaryrefslogtreecommitdiff
path: root/include/m_plugin.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-16 12:44:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-16 12:44:57 +0300
commit22682a718275e7a5e15f0d1dd129fab8c496168e (patch)
tree73d996080e2656b72563cb1f7f7fce8c0b96873a /include/m_plugin.h
parentf2dabebe019a79839278286d5d73ef323151e8f6 (diff)
warning fix
Diffstat (limited to 'include/m_plugin.h')
-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 95fc1a61cc..1ac420b5ab 100644
--- a/include/m_plugin.h
+++ b/include/m_plugin.h
@@ -16,7 +16,7 @@ protected:
: m_moduleName(moduleName)
{
wchar_t path[MAX_PATH];
- mir_snwprintf(path, L"%s\%s.txt", VARSW(L"%miranda_logpath%"), moduleName);
+ mir_snwprintf(path, L"%s\\%s.txt", VARSW(L"%miranda_logpath%"), moduleName);
m_hLogger = mir_createLog(moduleName, nullptr, path, 0);
}
@@ -172,7 +172,7 @@ protected:
__forceinline HANDLE CreatePluginEvent(const char *name)
{
- CMStringA str(FORMAT, "%s\%s", m_moduleName, name);
+ CMStringA str(FORMAT, "%s\\%s", m_moduleName, name);
return CreateHookableEvent(str);
}
@@ -185,14 +185,14 @@ protected:
typedef INT_PTR(__cdecl T::*MyServiceFunc)(WPARAM, LPARAM);
__forceinline void CreatePluginService(const char *name, MyServiceFunc pFunc)
{
- CMStringA str(FORMAT, "%s\%s", m_moduleName, name);
+ CMStringA str(FORMAT, "%s\\%s", m_moduleName, name);
CreateServiceFunctionObj(str, (MIRANDASERVICEOBJ)*(void**)&pFunc, this);
}
typedef INT_PTR(__cdecl T::*MyServiceFuncParam)(WPARAM, LPARAM, LPARAM);
__forceinline void CreatePluginServiceParam(const char *name, MyServiceFuncParam pFunc, LPARAM param)
{
- CMStringA str(FORMAT, "%s\%s", m_moduleName, name);
+ CMStringA str(FORMAT, "%s\\%s", m_moduleName, name);
CreateServiceFunctionObjParam(str, (MIRANDASERVICEOBJPARAM)*(void**)&pFunc, this, param);
}
};