reactos/lib/shell32
diff -u -r1.1 -r1.2
--- autocomplete.c 30 Jun 2004 20:51:45 -0000 1.1
+++ autocomplete.c 4 Jul 2004 06:56:41 -0000 1.2
@@ -562,7 +562,7 @@
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 */