[PATCH] comctl32/toolbar.c: fix trace info for TOOLBAR_InternalInsertButtonsT

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Wed Apr 22 06:31:09 CDT 2009


TOOLBAR_DumpTBButton should be invoked over the button currently being
inserted, and not always over the first button.
---
 dlls/comctl32/toolbar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index cf54df7..851a5cc 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -1832,7 +1832,7 @@ TOOLBAR_InternalInsertButtonsT(TOOLBAR_INFO *infoPtr, INT iIndex, UINT nAddButto
     for (iButton = 0; iButton < nAddButtons; iButton++) {
         TBUTTON_INFO *btnPtr = &infoPtr->buttons[iIndex + iButton];
 
-        TOOLBAR_DumpTBButton(lpTbb, fUnicode);
+        TOOLBAR_DumpTBButton(lpTbb + iButton, fUnicode);
 
         ZeroMemory(btnPtr, sizeof(*btnPtr));
 
-- 
1.6.2.254.g84bde




More information about the wine-devel mailing list