summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-21 14:28:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-21 14:28:10 +0300
commit3dd1a999c9e643fd92fd34301d9e65a7f07d8c54 (patch)
tree66460c3df55d74eb37023a271e2c9884fa1b7d35 /src
parent0fcb238c56ac3bc636c73c9ba51b9d66f8311479 (diff)
various code cleaning & name conflict resolution
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/chat_tools.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp
index 80016c07dd..e712e5ba86 100644
--- a/src/mir_app/src/chat_tools.cpp
+++ b/src/mir_app/src/chat_tools.cpp
@@ -381,15 +381,15 @@ int GetColorIndex(const char *pszModule, COLORREF cr)
void CheckColorsInModule(const char *pszModule)
{
MODULEINFO *pMod = chatApi.MM_FindModule(pszModule);
+ if (!pMod)
+ return;
+
int i = 0;
COLORREF crFG;
COLORREF crBG = (COLORREF)db_get_dw(0, CHAT_MODULE, "ColorMessageBG", GetSysColor(COLOR_WINDOW));
LoadMsgDlgFont(17, nullptr, &crFG);
- if (!pMod)
- return;
-
for (i = 0; i < pMod->nColorCount; i++) {
if (pMod->crColors[i] == crFG || pMod->crColors[i] == crBG) {
if (pMod->crColors[i] == RGB(255, 255, 255))