[Bug 1256] - edit control bug

wine-bugs at winehq.com wine-bugs at winehq.com
Fri Feb 7 05:17:20 CST 2003


http://bugs.winehq.com/show_bug.cgi?id=1256

felipewd at elipse.com.br changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From felipewd at elipse.com.br  2003-02-07 05:17 -------
Sander van Leeuwen fixed it with this patch:

--- controls/edit.c.orig	2003-02-07 09:16:26.000000000 -0200
+++ controls/edit.c	2003-02-07 08:57:04.000000000 -0200
@@ -1747,7 +1747,7 @@
 
 	alloc_size = ROUND_TO_GROW((size + 1) * sizeof(WCHAR));
 	if ((es->undo_text = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
es->undo_text, alloc_size))) {
-
	es->undo_buffer_size = alloc_size/sizeof(WCHAR);
+
	es->undo_buffer_size = alloc_size/sizeof(WCHAR) - 1;
 
	return TRUE;
 	}
 	else


DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://bugs.winehq.com/show_bug.cgi?id=1256>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.



More information about the wine-bugs mailing list