summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-11 21:03:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-11 21:03:49 (GMT)
commitbd36f63f8d6cf4129fd3af94e276b4ad9987562e (patch)
tree437ec18665aa5e9e0a85d4c2a4b7e0428155441b /win/tclWinFile.c
parent51a4b5f8807bc1e0df2e06087292df90c7777f50 (diff)
parentf05db2499a1f26791588140d9c283f7ee8e7c23a (diff)
downloadtcl-bd36f63f8d6cf4129fd3af94e276b4ad9987562e.zip
tcl-bd36f63f8d6cf4129fd3af94e276b4ad9987562e.tar.gz
tcl-bd36f63f8d6cf4129fd3af94e276b4ad9987562e.tar.bz2
merge core-8-4-branch
Diffstat (limited to 'win/tclWinFile.c')
-rwxr-xr-xwin/tclWinFile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 2c6150f..69d1838 100755
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -223,7 +223,7 @@ WinLink(LinkSource, LinkTarget, linkAction)
/* Make sure source file doesn't exist */
attr = (*tclWinProcs->getFileAttributesProc)(LinkSource);
- if (attr != 0xffffffff) {
+ if (attr != -1) {
Tcl_SetErrno(EEXIST);
return -1;
}
@@ -237,7 +237,7 @@ WinLink(LinkSource, LinkTarget, linkAction)
}
/* Check the target */
attr = (*tclWinProcs->getFileAttributesProc)(LinkTarget);
- if (attr == 0xffffffff) {
+ if (attr == -1) {
/* The target doesn't exist */
TclWinConvertError(GetLastError());
return -1;
@@ -301,7 +301,7 @@ WinReadLink(LinkSource)
/* Make sure source file does exist */
attr = (*tclWinProcs->getFileAttributesProc)(LinkSource);
- if (attr == 0xffffffff) {
+ if (attr == -1) {
/* The source doesn't exist */
TclWinConvertError(GetLastError());
return NULL;