com php-src: Also fix TSRM on Windows: TSRM/tsrm_win32. c
| From: | Kalle Sommer Nielsen | Date: | Sat, 30 Jul 2016 15:32:53 +0000 |
| Subject: | com php-src: Also fix TSRM on Windows: TSRM/tsrm_win32. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93497@lists.php.net to get a copy of this message | ||
Commit: c192bdecd5e0effd57224743d16caa66e863dd95
Author: Kalle Sommer Nielsen <kalle@php.net> Sat, 30 Jul 2016 17:32:53 +0200
Parents: bfba840e42cff04046900b322ed50cdfd163608a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c192bdecd5e0effd57224743d16caa66e863dd95
Log:
Also fix TSRM on Windows
Changed paths:
M TSRM/tsrm_win32.c
Diff:
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index 7015b3b..af96823 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;