diff options
author | dgp@users.sourceforge.net <dgp> | 2002-02-08 02:57:10 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2002-02-08 02:57:10 (GMT) |
commit | 9fe2c64c02fbc59f23d0d404b98e39fd4d5b9a0d (patch) | |
tree | 0dce5cb9458a0fe29fd391898aedfe73a6b1a598 /win/tkWinTest.c | |
parent | 54e2634c650881ded0b0ae8e0184de6abb6cda53 (diff) | |
download | tk-9fe2c64c02fbc59f23d0d404b98e39fd4d5b9a0d.zip tk-9fe2c64c02fbc59f23d0d404b98e39fd4d5b9a0d.tar.gz tk-9fe2c64c02fbc59f23d0d404b98e39fd4d5b9a0d.tar.bz2 |
* modified some callers of Tcl routines that
were restored to return (char *) pointing into Tcl_DStrings.
Diffstat (limited to 'win/tkWinTest.c')
-rw-r--r-- | win/tkWinTest.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/win/tkWinTest.c b/win/tkWinTest.c index bc84e85..ce0259d 100644 --- a/win/tkWinTest.c +++ b/win/tkWinTest.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinTest.c,v 1.5 2001/10/01 21:20:36 hobbs Exp $ + * RCS: @(#) $Id: tkWinTest.c,v 1.6 2002/02/08 02:57:11 dgp Exp $ */ #include "tkWinInt.h" @@ -121,11 +121,10 @@ AppendSystemError( Tcl_Encoding encoding; encoding = Tcl_GetEncoding(NULL, "unicode"); - Tcl_ExternalToUtfDString(encoding, (char *) wMsgPtr, -1, &ds); + msg = Tcl_ExternalToUtfDString(encoding, (char *) wMsgPtr, -1, &ds); Tcl_FreeEncoding(encoding); LocalFree(wMsgPtr); - msg = Tcl_DStringValue(&ds); length = Tcl_DStringLength(&ds); /* |