diff options
Diffstat (limited to 'plugins/helpers')
-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);
|