diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-30 19:36:27 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-30 19:36:27 +0000 |
commit | 7f2774b273be8f12622f80738860f04aa3166cde (patch) | |
tree | d57a4d2b70173bb33b25800c5620b0b6e44c78a2 | |
parent | 190b98cf90600fc0e98543ee87d772560547acca (diff) |
and helpers too
git-svn-id: http://svn.miranda-ng.org/main/trunk@705 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/helpers/db_helpers.cpp | 2 | ||||
-rw-r--r-- | plugins/helpers/gen_helpers.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/helpers/db_helpers.cpp b/plugins/helpers/db_helpers.cpp index ee33f8ada7..a9e1a2b389 100644 --- a/plugins/helpers/db_helpers.cpp +++ b/plugins/helpers/db_helpers.cpp @@ -30,7 +30,7 @@ static int DBRemoveEnumProc(const char *szSetting, LPARAM lParam) { rs = (struct RemoveSettings *)lParam;
if (!strncmp(szSetting, rs->szPrefix, strlen(rs->szPrefix))) {
- rs->szSettings = ( char** )realloc(rs->szSettings, (rs->count+1)*sizeof(char *));
+ rs->szSettings = ( char** )mir_realloc(rs->szSettings, (rs->count+1)*sizeof(char *));
rs->szSettings[rs->count] = mir_strdup(szSetting);
rs->count += 1;
}
diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp index 8a1ce0a922..7c55d9509b 100644 --- a/plugins/helpers/gen_helpers.cpp +++ b/plugins/helpers/gen_helpers.cpp @@ -65,7 +65,7 @@ TCHAR *Hlp_GetDlgItemText(HWND hwndDlg, int nIDDlgItem) { if (len < 0)
return NULL;
- TCHAR *res = ( TCHAR* )mir_alloc((len+1)*sizeof(TCHAR));
+ TCHAR *res = (TCHAR*)mir_alloc((len+1)*sizeof(TCHAR));
ZeroMemory(res, (len+1)*sizeof(TCHAR));
GetDlgItemText(hwndDlg, nIDDlgItem, res, len+1);
@@ -91,7 +91,7 @@ TCHAR *Hlp_GetWindowText(HWND hwndDlg) if (len < 0)
return NULL;
- TCHAR *res = ( TCHAR* )mir_alloc((len+1)*sizeof(TCHAR));
+ TCHAR *res = (TCHAR*)mir_alloc((len+1)*sizeof(TCHAR));
ZeroMemory(res, (len+1)*sizeof(TCHAR));
GetWindowText(hwndDlg, res, len+1);
|