com php-src: fix wrong error check: win32/ioutil.h

[email protected] (Anatol Belski)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    6e3d24bcf42413cc96875e8775e4cac769eb64aa
Author:    Anatol Belski <[email protected]>         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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.