diff options
Diffstat (limited to 'tipper')
-rw-r--r-- | tipper/popwin.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp index 109c6f1..ade2440 100644 --- a/tipper/popwin.cpp +++ b/tipper/popwin.cpp @@ -98,8 +98,8 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa if(status >= ID_STATUS_OFFLINE && status <= ID_STATUS_IDLE)
{
- TCHAR *swzText = 0;
- char *status_msg = 0;
+ TCHAR *swzText = NULL;
+ char *status_msg = NULL;
// supported by protocols from Miranda 0.8+
TCHAR* p = (TCHAR *)CallProtoService(pwd->clcit.proto, PS_GETMYAWAYMSG, 0, SGMA_TCHAR);
@@ -129,8 +129,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa pwd->row_count++;
}
-
- if(status_msg) mir_free(status_msg);
+ mir_free(status_msg);
}
} else if(pwd->clcit.text) {
pwd->text_tip = true;
|