From c192bdecd5e0effd57224743d16caa66e863dd95 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Sat, 30 Jul 2016 17:32:53 +0200 Subject: [PATCH] Also fix TSRM on Windows --- TSRM/tsrm_win32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.40.0