summaryrefslogtreecommitdiffstats
path: root/win/tclWinDde.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-06-09 23:18:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-06-09 23:18:24 (GMT)
commitda01cc0b3828c105964145e922195937765db837 (patch)
tree77a43047224f2b246c1a6e59f2af36c833e2c92e /win/tclWinDde.c
parent13c5b8cf121d2e55d4d9e4a34bcc9d8e08d99e65 (diff)
parente39d5419c36351fd1e67f48b94934998ddf15785 (diff)
downloadtcl-da01cc0b3828c105964145e922195937765db837.zip
tcl-da01cc0b3828c105964145e922195937765db837.tar.gz
tcl-da01cc0b3828c105964145e922195937765db837.tar.bz2
merge trunk
Diffstat (limited to 'win/tclWinDde.c')
-rw-r--r--win/tclWinDde.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinDde.c b/win/tclWinDde.c
index 5f2ef32..e40e114 100644
--- a/win/tclWinDde.c
+++ b/win/tclWinDde.c
@@ -1443,7 +1443,7 @@ DdeObjCmd(
dataLength += 1;
}
- if (dataLength <= ((flags & DDE_FLAG_BINARY) ? 0 : (int)sizeof(TCHAR))) {
+ if (dataLength <= 0) {
Tcl_SetObjResult(interp,
Tcl_NewStringObj("cannot execute null data", -1));
Tcl_SetErrorCode(interp, "TCL", "DDE", "NULL", NULL);