diff options
author | Pierre Joye <pajoye@php.net> | 2010-01-27 16:44:48 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-01-27 16:44:48 +0000 |
commit | 84b59b8582307de25047f9178134a29f0160f5fc (patch) | |
tree | 811ed0eb1f4fb8802d65970e1db928803ad8408f /TSRM/tsrm_virtual_cwd.c | |
parent | b37f2257a4058cd38d825ad2eb9e6b5dd483281d (diff) | |
download | php-git-84b59b8582307de25047f9178134a29f0160f5fc.tar.gz |
- little comment to avoid undesired changes in this section
Diffstat (limited to 'TSRM/tsrm_virtual_cwd.c')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index a076ea99d9..ed4e5a3d71 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -1514,6 +1514,7 @@ CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC) /* {{{ */ /* rename on windows will fail if newname already exists. MoveFileEx has to be used */ #ifdef TSRM_WIN32 + /* MoveFileEx returns 0 on failure, other way 'round for this function */ retval = (MoveFileEx(oldname, newname, MOVEFILE_REPLACE_EXISTING|MOVEFILE_COPY_ALLOWED) == 0) ? -1 : 0; #else retval = rename(oldname, newname); |