diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-03 10:56:28 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-03 10:56:28 (GMT) |
commit | 4152a1cc08547b251509c18405d318433f5ece2e (patch) | |
tree | 75be1366adc438a7d2ef0f75fc7c2ffe414d7872 /win/tclWinDde.c | |
parent | 3546e128c0c379f71d6fdf6678ad19cd9d0a0265 (diff) | |
download | tcl-4152a1cc08547b251509c18405d318433f5ece2e.zip tcl-4152a1cc08547b251509c18405d318433f5ece2e.tar.gz tcl-4152a1cc08547b251509c18405d318433f5ece2e.tar.bz2 |
converting to using Tcl_Obj API for error message generation; part done
Diffstat (limited to 'win/tclWinDde.c')
-rw-r--r-- | win/tclWinDde.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinDde.c b/win/tclWinDde.c index 1cd6c46..4d6e31b 100644 --- a/win/tclWinDde.c +++ b/win/tclWinDde.c @@ -1648,9 +1648,9 @@ DdeObjCmd( */ if (Tcl_IsSafe(riPtr->interp) && riPtr->handlerPtr == NULL) { - Tcl_SetResult(riPtr->interp, "permission denied: " - "a handler procedure must be defined for use in " - "a safe interp", TCL_STATIC); + Tcl_SetObjResult(riPtr->interp, Tcl_NewStringObj( + "permission denied: a handler procedure must be" + " defined for use in a safe interp", -1)); Tcl_SetErrorCode(interp, "TCL", "DDE", "SECURITY_CHECK", NULL); result = TCL_ERROR; |