Commit in reactos/lib/shell32 on MAIN
autocomplete.c+1-11.1 -> 1.2
Mike McCormack <mike@codeweavers.com>
- Fix a buffer overrun in autocomplete.

reactos/lib/shell32
autocomplete.c 1.1 -> 1.2
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 */
CVSspam 0.2.8