Off by one toolbar patch
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Fri Jan 11 11:04:27 CST 2002
Huw D M Davies <hdavies at codeweavers.com>
Fix off by one error in TOOLBAR_AddStringW
-------------- next part --------------
Index: dlls/comctl32/toolbar.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/toolbar.c,v
retrieving revision 1.98
diff -u -r1.98 toolbar.c
--- dlls/comctl32/toolbar.c 2002/01/04 21:50:01 1.98
+++ dlls/comctl32/toolbar.c 2002/01/11 15:17:36
@@ -2260,7 +2260,7 @@
TRACE("len=%d %s\n", len, debugstr_w(p));
infoPtr->strings[infoPtr->nNumStrings] =
COMCTL32_Alloc (sizeof(WCHAR)*(len+1));
- lstrcpynW (infoPtr->strings[infoPtr->nNumStrings], p, len);
+ lstrcpynW (infoPtr->strings[infoPtr->nNumStrings], p, len+1);
infoPtr->nNumStrings++;
p += (len+1);
More information about the wine-patches
mailing list