[PATCH 1/4] comdlg32/fontdlg: Limit text length user can type in as font point size

Nikolay Sivov nsivov at codeweavers.com
Mon Dec 21 16:19:30 CST 2015


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/comdlg32/fontdlg.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/comdlg32/fontdlg.c b/dlls/comdlg32/fontdlg.c
index 9e73ec9..8ba9c1e 100644
--- a/dlls/comdlg32/fontdlg.c
+++ b/dlls/comdlg32/fontdlg.c
@@ -753,6 +753,9 @@ static LRESULT CFn_WMInitDialog(HWND hDlg, LPARAM lParam, LPCHOOSEFONTW lpcf)
         SendMessageW(hDlg, WM_COMMAND, MAKEWPARAM(cmb5, CBN_SELCHANGE),
                 (LPARAM)GetDlgItem(hDlg,cmb5));
     }
+    /* limit text length user can type in as font size */
+    SendDlgItemMessageW(hDlg, cmb3, CB_LIMITTEXT, 5, 0);
+
     if ((lpcf->Flags & CF_USESTYLE) && lpcf->lpszStyle)
     {
         j=SendDlgItemMessageW(hDlg,cmb2,CB_FINDSTRING,-1,(LPARAM)lpcf->lpszStyle);
-- 
2.6.4




More information about the wine-patches mailing list