diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-10 16:52:55 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-10 16:52:55 +0000 |
commit | 568b27ff1197231b26d097dc05bcbb27ddd53efa (patch) | |
tree | f869b9bcd4728d3635b1c8af89b5f324e96f7482 /plugins/TabSRMM/src/typingnotify.cpp | |
parent | 247b795b92ea954f376d029a24b945d45458ab10 (diff) |
memory corruption fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@5637 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/typingnotify.cpp')
-rw-r--r-- | plugins/TabSRMM/src/typingnotify.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/TabSRMM/src/typingnotify.cpp b/plugins/TabSRMM/src/typingnotify.cpp index ca7aea8bcd..10eb677481 100644 --- a/plugins/TabSRMM/src/typingnotify.cpp +++ b/plugins/TabSRMM/src/typingnotify.cpp @@ -520,28 +520,28 @@ int TN_OptionsInitialize(WPARAM wParam, LPARAM lParam) int TN_ModuleInit()
{
- hPopupsList = (HANDLE) CallService(MS_UTILS_ALLOCWINDOWLIST,0,0);
+ hPopupsList = (HANDLE) CallService(MS_UTILS_ALLOCWINDOWLIST, 0, 0);
- OnePopup = M.GetByte(Module,SET_ONEPOPUP,DEF_ONEPOPUP);
- ShowMenu = M.GetByte(Module,SET_SHOWDISABLEMENU,DEF_SHOWDISABLEMENU);
+ OnePopup = M.GetByte(Module, SET_ONEPOPUP, DEF_ONEPOPUP);
+ ShowMenu = M.GetByte(Module, SET_SHOWDISABLEMENU, DEF_SHOWDISABLEMENU);
- int i = M.GetByte(Module,SET_DISABLED,DEF_DISABLED);
+ int i = M.GetByte(Module, SET_DISABLED, DEF_DISABLED);
Disabled = i & 1;
StartDisabled = i & 2;
StopDisabled = i & 4;
- ColorMode = M.GetByte(Module,SET_COLOR_MODE,DEF_COLOR_MODE);
- TimeoutMode = M.GetByte(Module,SET_TIMEOUT_MODE,DEF_TIMEOUT_MODE);
- Timeout = M.GetByte(Module,SET_TIMEOUT,DEF_TIMEOUT);
- TimeoutMode2 = M.GetByte(Module,SET_TIMEOUT_MODE2,DEF_TIMEOUT_MODE2);
- Timeout2 = M.GetByte(Module,SET_TIMEOUT2,DEF_TIMEOUT2);
+ ColorMode = M.GetByte(Module, SET_COLOR_MODE, DEF_COLOR_MODE);
+ TimeoutMode = M.GetByte(Module, SET_TIMEOUT_MODE, DEF_TIMEOUT_MODE);
+ Timeout = M.GetByte(Module, SET_TIMEOUT, DEF_TIMEOUT);
+ TimeoutMode2 = M.GetByte(Module, SET_TIMEOUT_MODE2, DEF_TIMEOUT_MODE2);
+ Timeout2 = M.GetByte(Module, SET_TIMEOUT2, DEF_TIMEOUT2);
if (!(M.GetDword(Module, colorPicker[0].desc, 1) && !M.GetDword(Module, colorPicker[0].desc, 0)))
for (i=0; i < SIZEOF(colorPicker); i++)
colorPicker[i].color = M.GetDword(Module,colorPicker[i].desc,0);
- mir_sntprintf(szStart, sizeof(szStart), TranslateT("...is typing a message."));
- mir_sntprintf(szStop, sizeof(szStop), TranslateT("...has stopped typing."));
+ mir_sntprintf(szStart, SIZEOF(szStart), TranslateT("...is typing a message."));
+ mir_sntprintf(szStop, SIZEOF(szStop), TranslateT("...has stopped typing."));
if (PluginConfig.g_PopupAvail && ShowMenu) {
hTypingNotify = CreateServiceFunction("TypingNotify/EnableDisableMenuCommand", EnableDisableMenuCommand);
|