diff options
Diffstat (limited to 'plugins/SRMM')
-rw-r--r-- | plugins/SRMM/richutil.c | 2 | ||||
-rw-r--r-- | plugins/SRMM/statusicon.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/SRMM/richutil.c b/plugins/SRMM/richutil.c index 14296717f7..87d827db9b 100644 --- a/plugins/SRMM/richutil.c +++ b/plugins/SRMM/richutil.c @@ -241,7 +241,7 @@ static LRESULT CALLBACK RichUtil_Proc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (IsWindow(hwnd))
{
- if((WNDPROC)GetWindowLongPtr(hwnd, GWLP_WNDPROC) == &RichUtil_Proc)
+ if ((WNDPROC)GetWindowLongPtr(hwnd, GWLP_WNDPROC) == &RichUtil_Proc)
SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR)ru->origProc);
}
diff --git a/plugins/SRMM/statusicon.c b/plugins/SRMM/statusicon.c index d8c5a5d87a..cd7ac3872e 100644 --- a/plugins/SRMM/statusicon.c +++ b/plugins/SRMM/statusicon.c @@ -103,7 +103,7 @@ INT_PTR ModifyStatusIcon(WPARAM wParam, LPARAM lParam) { while(current) {
if(strcmp(current->sid.szModule, sid->szModule) == 0 && current->sid.dwId == sid->dwId) {
- if(!hContact) {
+ if (!hContact) {
current->sid.flags = sid->flags;
if(sid->hIcon) {
DestroyIcon(current->sid.hIcon);
@@ -146,8 +146,8 @@ void DrawStatusIcons(HANDLE hContact, HDC hDC, RECT r, int gap) { while(current && x < r.right) {
sprintf(buff, "SRMMStatusIconFlags%d", current->sid.dwId);
flags = DBGetContactSettingByte(hContact, current->sid.szModule, buff, current->sid.flags);
- if(!(flags & MBF_HIDDEN)) {
- if((flags & MBF_DISABLED) && current->sid.hIconDisabled) hIcon = current->sid.hIconDisabled;
+ if (!(flags & MBF_HIDDEN)) {
+ if ((flags & MBF_DISABLED) && current->sid.hIconDisabled) hIcon = current->sid.hIconDisabled;
else hIcon = current->sid.hIcon;
SetBkMode(hDC, TRANSPARENT);
@@ -169,7 +169,7 @@ void CheckIconClick(HANDLE hContact, HWND hwndFrom, POINT pt, RECT r, int gap, i while(current && iconNum >= 0) {
sprintf(buff, "SRMMStatusIconFlags%d", current->sid.dwId);
flags = DBGetContactSettingByte(hContact, current->sid.szModule, buff, current->sid.flags);
- if(!(flags & MBF_HIDDEN)) iconNum--;
+ if (!(flags & MBF_HIDDEN)) iconNum--;
if(iconNum >= 0)
current = current->next;
}
@@ -212,7 +212,7 @@ int GetStatusIconsCount(HANDLE hContact) { while(current) {
sprintf(buff, "SRMMStatusIconFlags%d", (int)current->sid.dwId);
flags = DBGetContactSettingByte(hContact, current->sid.szModule, buff, current->sid.flags);
- if(!(flags & MBF_HIDDEN)) {
+ if (!(flags & MBF_HIDDEN)) {
count ++;
}
current = current->next;
|