From: Pierre Joye Date: Wed, 27 Jan 2010 16:44:48 +0000 (+0000) Subject: - little comment to avoid undesired changes in this section X-Git-Tag: php-5.4.0alpha1~191^2~2024 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32bbeb6bee8adface5cd608f66539dd5c7eee0df;p=php - little comment to avoid undesired changes in this section --- diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 92d230f164..b23cd605e8 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);