diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-20 10:30:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-20 10:30:42 (GMT) |
commit | d6b9036b665ab06fcb218295a69a011b385c9609 (patch) | |
tree | d6b60f913b0ccbe5b65bccf9956c2ce24696a80f /win/tkWinButton.c | |
parent | 4801848f58e2c408b9ec56a5d1db5625447da27c (diff) | |
download | tk-d6b9036b665ab06fcb218295a69a011b385c9609.zip tk-d6b9036b665ab06fcb218295a69a011b385c9609.tar.gz tk-d6b9036b665ab06fcb218295a69a011b385c9609.tar.bz2 |
One missing use of TCL_INDEX_NONE in stead of -1.
Use some more type-casts, making compiling Tk less sensitive to the use of -DUNICODE or not.
Diffstat (limited to 'win/tkWinButton.c')
-rw-r--r-- | win/tkWinButton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c index 6fc5cf1..fc5d9e2 100644 --- a/win/tkWinButton.c +++ b/win/tkWinButton.c @@ -131,7 +131,7 @@ InitBoxes(void) ThreadSpecificData *tsdPtr = (ThreadSpecificData *) Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); - hrsrc = FindResourceW(module, L"buttons", RT_BITMAP); + hrsrc = FindResourceW(module, L"buttons", (LPWSTR) RT_BITMAP); if (hrsrc == NULL) { Tcl_Panic("FindResourceW() failed for buttons bitmap resource, " "resources in tk_base.rc must be linked into Tk dll or static executable"); |