diff options
author | Anatol Belski <ab@php.net> | 2017-05-17 12:50:41 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-05-17 12:50:41 +0200 |
commit | 6e3d24bcf42413cc96875e8775e4cac769eb64aa (patch) | |
tree | 14cc2090ce9cdb9ce3365515d40d6f01e67d3b1f | |
parent | b73a73da25cacef5b0fd1b6ca69740191fe68831 (diff) | |
download | php-git-6e3d24bcf42413cc96875e8775e4cac769eb64aa.tar.gz |
fix wrong error check
-rw-r--r-- | win32/ioutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ioutil.h b/win32/ioutil.h index 6714d57375..1e781c665d 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; |