comctl32: Use mask value in COMBOEX_GetItemA too.
This commit is contained in:
parent
a02a680b72
commit
0ee7264c37
@ -577,17 +577,25 @@ static BOOL COMBOEX_GetItemA (COMBOEX_INFO *infoPtr, COMBOBOXEXITEMA *cit)
|
|||||||
tmpcit.pszText = 0;
|
tmpcit.pszText = 0;
|
||||||
if(!COMBOEX_GetItemW (infoPtr, &tmpcit)) return FALSE;
|
if(!COMBOEX_GetItemW (infoPtr, &tmpcit)) return FALSE;
|
||||||
|
|
||||||
if (is_textW(tmpcit.pszText) && cit->pszText)
|
if (cit->mask & CBEIF_TEXT)
|
||||||
WideCharToMultiByte (CP_ACP, 0, tmpcit.pszText, -1,
|
{
|
||||||
cit->pszText, cit->cchTextMax, NULL, NULL);
|
if (is_textW(tmpcit.pszText) && cit->pszText)
|
||||||
else if (cit->pszText) cit->pszText[0] = 0;
|
WideCharToMultiByte(CP_ACP, 0, tmpcit.pszText, -1,
|
||||||
else cit->pszText = (LPSTR)tmpcit.pszText;
|
cit->pszText, cit->cchTextMax, NULL, NULL);
|
||||||
|
else if (cit->pszText) cit->pszText[0] = 0;
|
||||||
|
else cit->pszText = (LPSTR)tmpcit.pszText;
|
||||||
|
}
|
||||||
|
|
||||||
cit->iImage = tmpcit.iImage;
|
if (cit->mask & CBEIF_IMAGE)
|
||||||
cit->iSelectedImage = tmpcit.iSelectedImage;
|
cit->iImage = tmpcit.iImage;
|
||||||
cit->iOverlay = tmpcit.iOverlay;
|
if (cit->mask & CBEIF_SELECTEDIMAGE)
|
||||||
cit->iIndent = tmpcit.iIndent;
|
cit->iSelectedImage = tmpcit.iSelectedImage;
|
||||||
cit->lParam = tmpcit.lParam;
|
if (cit->mask & CBEIF_OVERLAY)
|
||||||
|
cit->iOverlay = tmpcit.iOverlay;
|
||||||
|
if (cit->mask & CBEIF_INDENT)
|
||||||
|
cit->iIndent = tmpcit.iIndent;
|
||||||
|
if (cit->mask & CBEIF_LPARAM)
|
||||||
|
cit->lParam = tmpcit.lParam;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user