diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2012-03-21 17:22:31 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2012-03-21 17:22:31 +0000 |
commit | 8558039bd3c54c57b2db0afc20e4923b68078f57 (patch) | |
tree | 1a22fce537fa99d84616100687f082e9a44a3da3 | |
parent | 30a53274d012fbef8f8129e87ed441d28ade8630 (diff) |
fix for a memory crash
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@600 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r-- | tipper/popwin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tipper/popwin.cpp b/tipper/popwin.cpp index 1aac665..109c6f1 100644 --- a/tipper/popwin.cpp +++ b/tipper/popwin.cpp @@ -90,7 +90,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].swzLabel = _tcsdup(TranslateT("Status:"));
- pwd->rows[pwd->row_count].swzValue = strptr;
+ pwd->rows[pwd->row_count].swzValue = _tcsdup(strptr);
pwd->rows[pwd->row_count].value_newline = false;
pwd->rows[pwd->row_count].line_above = false;
pwd->row_count++;
|