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~371 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84b59b8582307de25047f9178134a29f0160f5fc;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 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);