Skip to content

Commit 1507f30

Browse files
committed
Merge branch 'PHP-7.1'
* PHP-7.1: fix wrong error check
2 parents a151d61 + 6e3d24b commit 1507f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

win32/ioutil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ __forceinline static FILE *php_win32_ioutil_fopen(const char *patha, const char
372372
free(pathw);
373373
free(modew);
374374

375-
if (0 > ret) {
375+
if (!ret) {
376376
_set_errno(err);
377377
}
378378
return ret;

0 commit comments

Comments
 (0)