diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-24 11:52:02 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-24 11:52:02 (GMT) |
commit | 93a3e63b7e9a22f94f1101b7ba32ac79738e5b65 (patch) | |
tree | a0bd8e0aab1fdb02c452d5c3eeeeb29c2af519c3 /win/tkWinMenu.c | |
parent | 14ffbbfd3279791bcc99fd50066d6821e92cc5f9 (diff) | |
download | tk-93a3e63b7e9a22f94f1101b7ba32ac79738e5b65.zip tk-93a3e63b7e9a22f94f1101b7ba32ac79738e5b65.tar.gz tk-93a3e63b7e9a22f94f1101b7ba32ac79738e5b65.tar.bz2 |
Add type-casts to many usage of Tcl_WinTCharToUtf(), so Tk compiles without warnings when omitting -DUNICODE.
Diffstat (limited to 'win/tkWinMenu.c')
-rw-r--r-- | win/tkWinMenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c index 0d25ca9..ce9a482 100644 --- a/win/tkWinMenu.c +++ b/win/tkWinMenu.c @@ -1249,7 +1249,7 @@ TkWinHandleMenuEvent( if (hashEntryPtr != NULL) { int i, len, underline; Tcl_Obj *labelPtr; - WCHAR *wlabel; + LPCWSTR wlabel; int menuChar; Tcl_DString ds; @@ -1272,7 +1272,7 @@ TkWinHandleMenuEvent( const char *src = Tcl_GetStringFromObj(labelPtr, &len); Tcl_DStringFree(&ds); - wlabel = (WCHAR *) Tcl_WinUtfToTChar(src, len, &ds); + wlabel = (LPCWSTR) Tcl_WinUtfToTChar(src, len, &ds); if ((underline < len) && (menuChar == Tcl_UniCharToUpper(wlabel[underline]))) { *plResult = (2 << 16) | i; |