comctl32: Fix incorrect const type casting.
This commit is contained in:
parent
f2a331cd0c
commit
3cad4a1d16
|
@ -728,7 +728,7 @@ STATUSBAR_SetParts (STATUS_INFO *infoPtr, INT count, LPINT parts)
|
||||||
|
|
||||||
static BOOL
|
static BOOL
|
||||||
STATUSBAR_SetTextT (STATUS_INFO *infoPtr, INT nPart, WORD style,
|
STATUSBAR_SetTextT (STATUS_INFO *infoPtr, INT nPart, WORD style,
|
||||||
LPCWSTR text, BOOL isW)
|
LPWSTR text, BOOL isW)
|
||||||
{
|
{
|
||||||
STATUSWINDOWPART *part=NULL;
|
STATUSWINDOWPART *part=NULL;
|
||||||
BOOL changed = FALSE;
|
BOOL changed = FALSE;
|
||||||
|
@ -759,7 +759,7 @@ STATUSBAR_SetTextT (STATUS_INFO *infoPtr, INT nPart, WORD style,
|
||||||
if (style & SBT_OWNERDRAW) {
|
if (style & SBT_OWNERDRAW) {
|
||||||
if (!(oldStyle & SBT_OWNERDRAW))
|
if (!(oldStyle & SBT_OWNERDRAW))
|
||||||
Free (part->text);
|
Free (part->text);
|
||||||
part->text = (LPWSTR)text;
|
part->text = text;
|
||||||
} else {
|
} else {
|
||||||
LPWSTR ntext;
|
LPWSTR ntext;
|
||||||
WCHAR *idx;
|
WCHAR *idx;
|
||||||
|
@ -1248,10 +1248,10 @@ StatusWindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
return STATUSBAR_SetParts (infoPtr, (INT)wParam, (LPINT)lParam);
|
return STATUSBAR_SetParts (infoPtr, (INT)wParam, (LPINT)lParam);
|
||||||
|
|
||||||
case SB_SETTEXTA:
|
case SB_SETTEXTA:
|
||||||
return STATUSBAR_SetTextT (infoPtr, nPart, wParam & 0xff00, (LPCWSTR)lParam, FALSE);
|
return STATUSBAR_SetTextT (infoPtr, nPart, wParam & 0xff00, (LPWSTR)lParam, FALSE);
|
||||||
|
|
||||||
case SB_SETTEXTW:
|
case SB_SETTEXTW:
|
||||||
return STATUSBAR_SetTextT (infoPtr, nPart, wParam & 0xff00, (LPCWSTR)lParam, TRUE);
|
return STATUSBAR_SetTextT (infoPtr, nPart, wParam & 0xff00, (LPWSTR)lParam, TRUE);
|
||||||
|
|
||||||
case SB_SETTIPTEXTA:
|
case SB_SETTIPTEXTA:
|
||||||
return STATUSBAR_SetTipTextA (infoPtr, (INT)wParam, (LPSTR)lParam);
|
return STATUSBAR_SetTipTextA (infoPtr, (INT)wParam, (LPSTR)lParam);
|
||||||
|
|
Loading…
Reference in New Issue