TOOLBAR_InsertButtonA: If iString==-1 then don't use it as a pointer.
This commit is contained in:
parent
b6dc0940c2
commit
b412b3ccbe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue