]> granicus.if.org Git - php/commitdiff
- little comment to avoid undesired changes in this section
authorPierre Joye <pajoye@php.net>
Wed, 27 Jan 2010 16:44:48 +0000 (16:44 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 27 Jan 2010 16:44:48 +0000 (16:44 +0000)
TSRM/tsrm_virtual_cwd.c

index a076ea99d96af97d5cc4a468142fb726901fa82d..ed4e5a3d7117445fd7d9edb9ebd7ac1e10e356cf 100644 (file)
@@ -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);