diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-07-23 16:14:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-07-23 16:14:00 (GMT) |
commit | 0948306752ac58e7f1d55be77d8b6bf44e31df27 (patch) | |
tree | 0a08c40a0c24611599a8b9df577d89ea2b68e8d7 /win | |
parent | 28a890e0a7c28c69025c481cf1687bff6a3dcbb9 (diff) | |
download | tk-0948306752ac58e7f1d55be77d8b6bf44e31df27.zip tk-0948306752ac58e7f1d55be77d8b6bf44e31df27.tar.gz tk-0948306752ac58e7f1d55be77d8b6bf44e31df27.tar.bz2 |
wide-api-bug, still to be tested
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinDialog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c index cdfdafa..d4ebd96 100644 --- a/win/tkWinDialog.c +++ b/win/tkWinDialog.c @@ -3151,7 +3151,7 @@ HookProc( WPARAM wParam, LPARAM lParam) { - CHOOSEFONT *pcf = (CHOOSEFONT *) lParam; + CHOOSEFONTW *pcf = (CHOOSEFONTW *) lParam; HWND hwndCtrl; static HookData *phd = NULL; ThreadSpecificData *tsdPtr = (ThreadSpecificData *) @@ -3463,10 +3463,10 @@ FontchooserShowCmd( Tk_MakeWindowExist(parent); - ZeroMemory(&cf, sizeof(CHOOSEFONT)); - ZeroMemory(&lf, sizeof(LOGFONT)); + ZeroMemory(&cf, sizeof(CHOOSEFONTW)); + ZeroMemory(&lf, sizeof(LOGFONTW)); lf.lfCharSet = DEFAULT_CHARSET; - cf.lStructSize = sizeof(CHOOSEFONT); + cf.lStructSize = sizeof(CHOOSEFONTW); cf.hwndOwner = Tk_GetHWND(Tk_WindowId(parent)); cf.lpLogFont = &lf; cf.nFontType = SCREEN_FONTTYPE; |