summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2002-02-08 02:57:10 (GMT)
committerdgp <dgp@users.sourceforge.net>2002-02-08 02:57:10 (GMT)
commit22946a8cd411fca97059fd12ff2e1b015afc922c (patch)
tree0dce5cb9458a0fe29fd391898aedfe73a6b1a598 /win/tkWinDialog.c
parentc4c221ed212e46e8248635e96a58dc801e106668 (diff)
downloadtk-22946a8cd411fca97059fd12ff2e1b015afc922c.zip
tk-22946a8cd411fca97059fd12ff2e1b015afc922c.tar.gz
tk-22946a8cd411fca97059fd12ff2e1b015afc922c.tar.bz2
* modified some callers of Tcl routines that
were restored to return (char *) pointing into Tcl_DStrings.
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r--win/tkWinDialog.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index 2b52978..8e0640f 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinDialog.c,v 1.24 2002/01/18 13:29:05 dgp Exp $
+ * RCS: @(#) $Id: tkWinDialog.c,v 1.25 2002/02/08 02:57:11 dgp Exp $
*
*/
@@ -393,9 +393,8 @@ ColorDlgHookProc(hDlg, uMsg, wParam, lParam)
ccPtr = (CHOOSECOLOR *) lParam;
title = (const char *) ccPtr->lCustData;
if ((title != NULL) && (title[0] != '\0')) {
- Tcl_WinUtfToTChar(title, -1, &ds);
(*tkWinProcs->setWindowText)(hDlg,
- (TCHAR *) Tcl_DStringValue(&ds));
+ Tcl_WinUtfToTChar(title, -1, &ds));
Tcl_DStringFree(&ds);
}
if (tsdPtr->debugFlag) {