diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-20 22:11:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-20 22:11:15 +0000 |
commit | c16625bfdc49c39ea6c159a70a87b95bbdc7a6c9 (patch) | |
tree | 1de2496feb7228ffca4d6c11d462f5beaecdaab1 /plugins/NewXstatusNotify/src/indsnd.cpp | |
parent | 3b95a5b3f6ff4541f5162acd20f3f54dd8a5339c (diff) |
fix for a possible memory corruption
git-svn-id: http://svn.miranda-ng.org/main/trunk@12458 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/indsnd.cpp')
-rw-r--r-- | plugins/NewXstatusNotify/src/indsnd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewXstatusNotify/src/indsnd.cpp b/plugins/NewXstatusNotify/src/indsnd.cpp index a7765b0e39..50e35d5245 100644 --- a/plugins/NewXstatusNotify/src/indsnd.cpp +++ b/plugins/NewXstatusNotify/src/indsnd.cpp @@ -63,7 +63,7 @@ TCHAR *SelectSound(HWND hwndDlg, TCHAR *buff, size_t bufflen) OPENFILENAME ofn = { 0 };
HWND hList = GetDlgItem(hwndDlg, IDC_INDSNDLIST);
- ListView_GetItemText(hList, ListView_GetNextItem(hList, -1, LVNI_SELECTED), 1, buff, bufflen);
+ ListView_GetItemText(hList, ListView_GetNextItem(hList, -1, LVNI_SELECTED), 1, buff, (DWORD)bufflen);
if (!mir_tstrcmp(buff, TranslateT(DEFAULT_SOUND)))
buff = NULL;
|