From: Antony Dovgal Date: Sat, 5 Aug 2006 13:17:32 +0000 (+0000) Subject: yet another appempt to fix Windows bug X-Git-Tag: RELEASE_1_0_0RC1~2079 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ead46d043f5f2cc529569d8dd76f8f6fe281d443;p=php yet another appempt to fix Windows bug thanks Rob for the patch --- diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 59a6b81d1d..0b333ede04 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -720,7 +720,9 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC) int ret; CWD_STATE_COPY(&new_state, &CWDG(cwd)); - virtual_file_ex(&new_state, pathname, NULL, 1); + if (virtual_file_ex(&new_state, pathname, NULL, 1)) { + return -1; + } #if defined(TSRM_WIN32) ret = tsrm_win32_access(new_state.cwd, mode);