summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2011-04-04 20:19:53 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2011-04-04 20:19:53 (GMT)
commit6334f55877dae220639da5e0afd9289305be5c18 (patch)
tree0f25bdc2d0e92daff618c06ee4b1501cd58ae054 /win
parentb75d0e1bda1628ba6964baa10c0920c75d454ac4 (diff)
downloadtk-6334f55877dae220639da5e0afd9289305be5c18.zip
tk-6334f55877dae220639da5e0afd9289305be5c18.tar.gz
tk-6334f55877dae220639da5e0afd9289305be5c18.tar.bz2
* win/tkWinDialog.c (FontchooserShowCmd): Change the CHOOSEFONT and LOGFONT used with sizeof to CHOOSEFONTA and LOGFONTA to match their local variable declarations (i.e. mismatch with -DUNICODE). This code is not present in 8.4 or 8.5.
Diffstat (limited to 'win')
-rw-r--r--win/tkWinDialog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index 3c70a66..8e8c4eb 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -2356,10 +2356,10 @@ FontchooserShowCmd(
Tk_MakeWindowExist(parent);
- ZeroMemory(&cf, sizeof(CHOOSEFONT));
- ZeroMemory(&lf, sizeof(LOGFONT));
+ ZeroMemory(&cf, sizeof(CHOOSEFONTA));
+ ZeroMemory(&lf, sizeof(LOGFONTA));
lf.lfCharSet = DEFAULT_CHARSET;
- cf.lStructSize = sizeof(CHOOSEFONT);
+ cf.lStructSize = sizeof(CHOOSEFONTA);
cf.hwndOwner = Tk_GetHWND(Tk_WindowId(parent));
cf.lpLogFont = &lf;
cf.nFontType = SCREEN_FONTTYPE;