summaryrefslogtreecommitdiff
path: root/tipper/popwin.cpp
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-26 22:40:51 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-26 22:40:51 +0000
commit7c6899953550c3a1f6a4ce611a04f24bd0e232f7 (patch)
treee5420440ab5c4c7fdd2bba6fb61b242be31d981b /tipper/popwin.cpp
parent5a86d8a829bc6de9fac5aafb5d77abd0b98cd8b9 (diff)
fix for memory corruption (thx george)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@62 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/popwin.cpp')
-rw-r--r--tipper/popwin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp
index 72d38c8..5110ae8 100644
--- a/tipper/popwin.cpp
+++ b/tipper/popwin.cpp
@@ -122,7 +122,7 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa
pwd->rows = (RowData *)realloc(pwd->rows, sizeof(RowData) * (pwd->row_count + 1));
pwd->rows[pwd->row_count].line_above = false;
pwd->rows[pwd->row_count].value_newline = true;
- pwd->rows[pwd->row_count].swzLabel = _T("");
+ pwd->rows[pwd->row_count].swzLabel = _tcsdup(_T(""));
pwd->rows[pwd->row_count].swzValue = _tcsdup(buff);
pwd->row_count++;
top_message = true;