user: Add missing sizeof(WCHAR) multiplier.

This commit is contained in:
James Hawkins 2006-10-04 03:16:23 -07:00 committed by Alexandre Julliard
parent dcec67ba60
commit 96963d2bc1
1 changed files with 1 additions and 1 deletions

View File

@ -1651,7 +1651,7 @@ static BOOL DIALOG_DlgDirSelect( HWND hwnd, LPWSTR str, INT len,
size = SendMessageW(listbox, combo ? CB_GETLBTEXTLEN : LB_GETTEXTLEN, 0, 0 );
if (size == LB_ERR) return FALSE;
if (!(buffer = HeapAlloc( GetProcessHeap(), 0, size+1 ))) return FALSE;
if (!(buffer = HeapAlloc( GetProcessHeap(), 0, (size+1) * sizeof(WCHAR) ))) return FALSE;
SendMessageW( listbox, combo ? CB_GETLBTEXT : LB_GETTEXT, item, (LPARAM)buffer );