diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-05 12:09:12 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-05 12:09:12 (GMT) |
commit | 0f97712d765005441870b6e919297456e986be02 (patch) | |
tree | abf0fe6884e78232b9fa8bb36a11d16458869c8a /win/tclWinDde.c | |
parent | 26c44cb82bf68dc8c98700b4c5aca7da3d913877 (diff) | |
download | tcl-0f97712d765005441870b6e919297456e986be02.zip tcl-0f97712d765005441870b6e919297456e986be02.tar.gz tcl-0f97712d765005441870b6e919297456e986be02.tar.bz2 |
Final part of result generation conversion (modulo any minor blunders)
Diffstat (limited to 'win/tclWinDde.c')
-rw-r--r-- | win/tclWinDde.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win/tclWinDde.c b/win/tclWinDde.c index 4d6e31b..e225989 100644 --- a/win/tclWinDde.c +++ b/win/tclWinDde.c @@ -157,7 +157,8 @@ Dde_Init( #ifdef UNICODE if (TclWinGetPlatformId() < VER_PLATFORM_WIN32_NT) { - Tcl_AppendResult(interp, "Win32s and Windows 9x are not supported platforms", NULL); + Tcl_SetObjResult(interp, Tcl_NewStringObj( + "Win32s and Windows 9x are not supported platforms", -1)); return TCL_ERROR; } #endif @@ -947,8 +948,8 @@ MakeDdeConnection( if (ddeConv == (HCONV) NULL) { if (interp != NULL) { - Tcl_AppendResult(interp, "no registered server named \"", - name, "\"", NULL); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "no registered server named \"%s\"", name)); Tcl_SetErrorCode(interp, "TCL", "DDE", "NO_SERVER", NULL); } return TCL_ERROR; |