summaryrefslogtreecommitdiffstats
path: root/win/tkWinMenu.c
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-09-15 22:35:38 (GMT)
committerhobbs <hobbs>1999-09-15 22:35:38 (GMT)
commit29a8ab2e2bd76e215bfd83fbd45a492d6d670ada (patch)
tree7146a0a4543890f2a676bf30185894850bb563f8 /win/tkWinMenu.c
parent41c436747407d9a427a6dfed85259c399b8d53e0 (diff)
downloadtk-29a8ab2e2bd76e215bfd83fbd45a492d6d670ada.zip
tk-29a8ab2e2bd76e215bfd83fbd45a492d6d670ada.tar.gz
tk-29a8ab2e2bd76e215bfd83fbd45a492d6d670ada.tar.bz2
1999-09-14 Jeff Hobbs <hobbs@scriptics.com>
* win/tkWinMenu.c: fix for stack overrun in GetTextFace [Bug: 909]
Diffstat (limited to 'win/tkWinMenu.c')
-rw-r--r--win/tkWinMenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c
index b39d584..92c017f 100644
--- a/win/tkWinMenu.c
+++ b/win/tkWinMenu.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinMenu.c,v 1.5 1999/04/16 01:51:52 stanton Exp $
+ * RCS: @(#) $Id: tkWinMenu.c,v 1.6 1999/09/15 22:35:42 hobbs Exp $
*/
#define OEMRESOURCE
@@ -2716,7 +2716,7 @@ SetDefaults(
}
SelectObject(scratchDC, menuFont);
GetTextMetrics(scratchDC, &tm);
- GetTextFace(scratchDC, sizeof(menuFontDString), faceName);
+ GetTextFace(scratchDC, LF_FACESIZE, faceName);
pointSize = MulDiv(tm.tmHeight - tm.tmInternalLeading,
72, GetDeviceCaps(scratchDC, LOGPIXELSY));
if (tm.tmWeight >= 700) {