mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
Mike McCormack <mike@codeweavers.com>
- Fix a buffer overrun in autocomplete. svn path=/trunk/; revision=9991
This commit is contained in:
parent
31456c578a
commit
62a8ad0e87
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
|
|||
|
||||
HeapFree(GetProcessHeap(), 0, This->txtbackup);
|
||||
This->txtbackup = (WCHAR*) HeapAlloc(GetProcessHeap(),
|
||||
HEAP_ZERO_MEMORY, lstrlenW(hwndText)*sizeof(WCHAR));
|
||||
HEAP_ZERO_MEMORY, (lstrlenW(hwndText)+1)*sizeof(WCHAR));
|
||||
lstrcpyW(This->txtbackup, hwndText);
|
||||
|
||||
/* Returns if there is no text to search and we doesn't want to display all the entries */
|
||||
|
|
Loading…
Reference in a new issue