diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-11 21:03:49 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-11 21:03:49 (GMT) |
commit | bd36f63f8d6cf4129fd3af94e276b4ad9987562e (patch) | |
tree | 437ec18665aa5e9e0a85d4c2a4b7e0428155441b /win/tclWinFile.c | |
parent | 51a4b5f8807bc1e0df2e06087292df90c7777f50 (diff) | |
parent | f05db2499a1f26791588140d9c283f7ee8e7c23a (diff) | |
download | tcl-bd36f63f8d6cf4129fd3af94e276b4ad9987562e.zip tcl-bd36f63f8d6cf4129fd3af94e276b4ad9987562e.tar.gz tcl-bd36f63f8d6cf4129fd3af94e276b4ad9987562e.tar.bz2 |
merge core-8-4-branch
Diffstat (limited to 'win/tclWinFile.c')
-rwxr-xr-x | win/tclWinFile.c | 6 |
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; |