Commit 585f863c authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

comctl32: Do not use wide character constants.

parent 717cccb5
...@@ -442,10 +442,10 @@ void WINAPI DrawStatusTextW (HDC hdc, LPCRECT lprc, LPCWSTR text, UINT style) ...@@ -442,10 +442,10 @@ void WINAPI DrawStatusTextW (HDC hdc, LPCRECT lprc, LPCWSTR text, UINT style)
if (text) { if (text) {
int oldbkmode = SetBkMode (hdc, TRANSPARENT); int oldbkmode = SetBkMode (hdc, TRANSPARENT);
UINT align = DT_LEFT; UINT align = DT_LEFT;
if (*text == L'\t') { if (*text == '\t') {
text++; text++;
align = DT_CENTER; align = DT_CENTER;
if (*text == L'\t') { if (*text == '\t') {
text++; text++;
align = DT_RIGHT; align = DT_RIGHT;
} }
......
...@@ -240,7 +240,7 @@ INT WINAPI Str_GetPtrW (LPCWSTR lpSrc, LPWSTR lpDest, INT nMaxLen) ...@@ -240,7 +240,7 @@ INT WINAPI Str_GetPtrW (LPCWSTR lpSrc, LPWSTR lpDest, INT nMaxLen)
return 0; return 0;
if (lpSrc == NULL) { if (lpSrc == NULL) {
lpDest[0] = L'\0'; lpDest[0] = '\0';
return 0; return 0;
} }
...@@ -249,7 +249,7 @@ INT WINAPI Str_GetPtrW (LPCWSTR lpSrc, LPWSTR lpDest, INT nMaxLen) ...@@ -249,7 +249,7 @@ INT WINAPI Str_GetPtrW (LPCWSTR lpSrc, LPWSTR lpDest, INT nMaxLen)
len = nMaxLen - 1; len = nMaxLen - 1;
RtlMoveMemory (lpDest, lpSrc, len*sizeof(WCHAR)); RtlMoveMemory (lpDest, lpSrc, len*sizeof(WCHAR));
lpDest[len] = L'\0'; lpDest[len] = '\0';
return len; return len;
} }
......
...@@ -427,7 +427,7 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool) ...@@ -427,7 +427,7 @@ TOOLTIPS_GetTipText (HWND hwnd, TOOLTIPS_INFO *infoPtr, INT nTool)
} }
else { else {
/* no text available */ /* no text available */
infoPtr->szTipText[0] = L'\0'; infoPtr->szTipText[0] = '\0';
} }
TRACE("%s\n", debugstr_w(infoPtr->szTipText)); TRACE("%s\n", debugstr_w(infoPtr->szTipText));
...@@ -515,7 +515,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr) ...@@ -515,7 +515,7 @@ TOOLTIPS_Show (HWND hwnd, TOOLTIPS_INFO *infoPtr)
TOOLTIPS_GetTipText (hwnd, infoPtr, infoPtr->nCurrentTool); TOOLTIPS_GetTipText (hwnd, infoPtr, infoPtr->nCurrentTool);
if (infoPtr->szTipText[0] == L'\0') { if (infoPtr->szTipText[0] == '\0') {
infoPtr->nCurrentTool = -1; infoPtr->nCurrentTool = -1;
return; return;
} }
...@@ -734,7 +734,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr) ...@@ -734,7 +734,7 @@ TOOLTIPS_TrackShow (HWND hwnd, TOOLTIPS_INFO *infoPtr)
TOOLTIPS_GetTipText (hwnd, infoPtr, infoPtr->nTrackTool); TOOLTIPS_GetTipText (hwnd, infoPtr, infoPtr->nTrackTool);
if (infoPtr->szTipText[0] == L'\0') { if (infoPtr->szTipText[0] == '\0') {
infoPtr->nTrackTool = -1; infoPtr->nTrackTool = -1;
return; return;
} }
......
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