diff options
Diffstat (limited to 'generic/tclFCmd.c')
| -rw-r--r-- | generic/tclFCmd.c | 19 | 
1 files changed, 8 insertions, 11 deletions
| diff --git a/generic/tclFCmd.c b/generic/tclFCmd.c index 33c1496..6452fff 100644 --- a/generic/tclFCmd.c +++ b/generic/tclFCmd.c @@ -517,7 +517,7 @@ CopyRenameOneFile(  	 * 16 bits and we get collisions. See bug #2015723.  	 */ -#if !defined(WIN32) && !defined(__CYGWIN__) +#if !defined(_WIN32) && !defined(__CYGWIN__)  	if ((sourceStatBuf.st_ino != 0) && (targetStatBuf.st_ino != 0)) {  	    if ((sourceStatBuf.st_ino == targetStatBuf.st_ino) &&  		    (sourceStatBuf.st_dev == targetStatBuf.st_dev)) { @@ -734,17 +734,14 @@ CopyRenameOneFile(  	     */  	    errfile = target; - -	    /* -	     * We now need to reset the result, because the above call, if it -	     * failed, may have put an error message in place. (Ideally we -	     * would prefer not to pass an interpreter in above, but the -	     * channel IO code used by TclCrossFilesystemCopy currently -	     * requires one). -	     */ - -	    Tcl_ResetResult(interp);  	} +	/*  +	 * We now need to reset the result, because the above call, +	 * may have left set it.  (Ideally we would prefer not to pass +	 * an interpreter in above, but the channel IO code used by +	 * TclCrossFilesystemCopy currently requires one) +	 */ +	Tcl_ResetResult(interp);      }      if ((copyFlag == 0) && (result == TCL_OK)) {  	if (S_ISDIR(sourceStatBuf.st_mode)) { | 
