com php-src: fix wrong error check: win32/ioutil.h
| From: | Anatol Belski | Date: | Wed, 17 May 2017 10:50:41 +0000 |
| Subject: | com php-src: fix wrong error check: win32/ioutil.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-97838@lists.php.net to get a copy of this message | ||
Commit: 6e3d24bcf42413cc96875e8775e4cac769eb64aa
Author: Anatol Belski <ab@php.net> Wed, 17 May 2017 12:50:41 +0200
Parents: b73a73da25cacef5b0fd1b6ca69740191fe68831
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6e3d24bcf42413cc96875e8775e4cac769eb64aa
Log:
fix wrong error check
Changed paths:
M win32/ioutil.h
Diff:
diff --git a/win32/ioutil.h b/win32/ioutil.h
index 6714d57..1e781c6 100644
--- a/win32/ioutil.h
+++ b/win32/ioutil.h
@@ -370,7 +370,7 @@ __forceinline static FILE *php_win32_ioutil_fopen(const char *patha, const char
free(pathw);
free(modew);
- if (0 > ret) {
+ if (!ret) {
_set_errno(err);
}
return ret;