From: Kalle Sommer Nielsen Date: Sat, 30 Jul 2016 15:32:53 +0000 (+0200) Subject: Also fix TSRM on Windows X-Git-Tag: php-7.2.0alpha1~1558^2~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c192bdecd5e0effd57224743d16caa66e863dd95;p=php Also fix TSRM on Windows --- diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 7015b3bbb7..af96823f0c 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -209,14 +209,14 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode) BYTE * psec_desc = NULL; BOOL fAccess = FALSE; + realpath_cache_bucket * bucket = NULL; + char * real_path = NULL; + PHP_WIN32_IOUTIL_INIT_W(pathname) if (!pathw) { return -1; } - realpath_cache_bucket * bucket = NULL; - char * real_path = NULL; - if (mode == 1 /*X_OK*/) { DWORD type; int ret;