diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-27 11:00:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-27 11:00:02 +0000 |
commit | 0d289371985e2d099b0de6b8150dbb74fb416e43 (patch) | |
tree | 6f458445f16db7331d3e7e64e2c0ca5685db2d31 /plugins/NewAwaySysMod/src/AwaySys.cpp | |
parent | 3412f466bdafa84485bb35c6913c309d315d6a4e (diff) |
fix for a crash when a pointer gets converted to int
git-svn-id: http://svn.miranda-ng.org/main/trunk@14737 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewAwaySysMod/src/AwaySys.cpp')
-rw-r--r-- | plugins/NewAwaySysMod/src/AwaySys.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewAwaySysMod/src/AwaySys.cpp b/plugins/NewAwaySysMod/src/AwaySys.cpp index 12ce7b1df4..06df823b98 100644 --- a/plugins/NewAwaySysMod/src/AwaySys.cpp +++ b/plugins/NewAwaySysMod/src/AwaySys.cpp @@ -232,7 +232,7 @@ int StatusChanged(WPARAM wParam, LPARAM lParam) int i;
for (i = _countof(StatusModeList) - 1; i >= 0; i--)
- if (wParam == StatusModeList[i].Status)
+ if ((int)wParam == StatusModeList[i].Status)
break;
if (i < 0)
return 0;
@@ -524,9 +524,9 @@ INT_PTR srvVariablesHandler(WPARAM, LPARAM lParam) COptItem_TreeCtrl *TreeCtrl = (COptItem_TreeCtrl*)MsgTreeData.Find(IDV_MSGTREE);
TreeCtrl->DBToMem(CString(MOD_NAME));
- for (int i = 0; i < TreeCtrl->Value.GetSize(); i++) {
- if (!(TreeCtrl->Value[i].Flags & TIF_GROUP) && !mir_tstrcmpi(TreeCtrl->Value[i].Title, ai->targv[1])) {
- Result = TreeCtrl->Value[i].User_Str1;
+ for (int i = 0; i < TreeCtrl->m_value.GetSize(); i++) {
+ if (!(TreeCtrl->m_value[i].Flags & TIF_GROUP) && !mir_tstrcmpi(TreeCtrl->m_value[i].Title, ai->targv[1])) {
+ Result = TreeCtrl->m_value[i].User_Str1;
break;
}
}
|