From 84b59b8582307de25047f9178134a29f0160f5fc Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Wed, 27 Jan 2010 16:44:48 +0000 Subject: [PATCH] - little comment to avoid undesired changes in this section --- TSRM/tsrm_virtual_cwd.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.50.1