Commit b412b3cc authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

TOOLBAR_InsertButtonA: If iString==-1 then don't use it as a pointer.

parent b6dc0940
......@@ -2785,7 +2785,8 @@ TOOLBAR_InsertButtonA (HWND hwnd, WPARAM wParam, LPARAM lParam)
int len;
LPSTR ptr;
if(lpTbb->iString) {
/* FIXME: iString == -1 is undocumented */
if(lpTbb->iString && lpTbb->iString!=-1) {
len = strlen((char*)lpTbb->iString) + 2;
ptr = COMCTL32_Alloc(len);
nIndex = infoPtr->nNumButtons;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment