summaryrefslogtreecommitdiffstats
path: root/win/tclWinDde.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-08 08:07:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-08 08:07:01 (GMT)
commit1c287f81b4cc32553c3336ad9f095f0e422b7116 (patch)
tree7f6587c5984cdb9a920dedd3f0e110ae7f496e0e /win/tclWinDde.c
parent342d27d13f57e57c4e1bc71b6dd00ef6244d8af1 (diff)
downloadtcl-1c287f81b4cc32553c3336ad9f095f0e422b7116.zip
tcl-1c287f81b4cc32553c3336ad9f095f0e422b7116.tar.gz
tcl-1c287f81b4cc32553c3336ad9f095f0e422b7116.tar.bz2
Revise the "null data" check: null strings are possible, but empty binary arrays are not
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);