comctl32: Do not use wide character constants.
This commit is contained in:
parent
717cccb5ce
commit
585f863c24
|
@ -442,10 +442,10 @@ void WINAPI DrawStatusTextW (HDC hdc, LPCRECT lprc, LPCWSTR text, UINT style)
|
|||
if (text) {
|
||||
int oldbkmode = SetBkMode (hdc, TRANSPARENT);
|
||||
UINT align = DT_LEFT;
|
||||
if (*text == L'\t') {
|
||||
if (*text == '\t') {
|
||||
text++;
|
||||
align = DT_CENTER;
|
||||
if (*text == L'\t') {
|
||||
if (*text == '\t') {
|
||||
text++;
|
||||
align = DT_RIGHT;
|
||||
}
|
||||
|
|
|
@ -240,7 +240,7 @@ INT WINAPI Str_GetPtrW (LPCWSTR lpSrc, LPWSTR lpDest, INT nMaxLen)
|
|||
return 0;
|
||||
|
||||
if (lpSrc == NULL) {
|
||||
lpDest[0] = L'\0';
|
||||
lpDest[0] = '\0';
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -249,7 +249,7 @@ INT WINAPI Str_GetPtrW (LPCWSTR lpSrc, LPWSTR lpDest, INT nMaxLen)
|
|||
len = nMaxLen - 1;
|
||||
|
||||
RtlMoveMemory (lpDest, lpSrc, len*sizeof(WCHAR));
|
||||
lpDest[len] = L'\0';
|
||||
lpDest[len] = '\0';
|
||||
|
||||
return len;
|
||||
}
|
||||
|
|
|
@ -427,7 +427,7 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
|
|||
}
|
||||
else {
|
||||
/* no text available */
|
||||
infoPtr->szTipText[0] = L'\0';
|
||||
infoPtr->szTipText[0] = '\0';
|
||||
}
|
||||
|
||||
TRACE("%s\n", debugstr_w(infoPtr->szTipText));
|
||||
|
@ -515,7 +515,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
|
|||
|
||||
TOOLTIPS_GetTipText (hwnd, infoPtr, infoPtr->nCurrentTool);
|
||||
|
||||
if (infoPtr->szTipText[0] == L'\0') {
|
||||
if (infoPtr->szTipText[0] == '\0') {
|
||||
infoPtr->nCurrentTool = -1;
|
||||
return;
|
||||
}
|
||||
|
@ -734,7 +734,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
|
|||
|
||||
TOOLTIPS_GetTipText (hwnd, infoPtr, infoPtr->nTrackTool);
|
||||
|
||||
if (infoPtr->szTipText[0] == L'\0') {
|
||||
if (infoPtr->szTipText[0] == '\0') {
|
||||
infoPtr->nTrackTool = -1;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue