Skip to content

Commit 6e3d24b

Browse files
committed
fix wrong error check
1 parent b73a73d commit 6e3d24b

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
@@ -370,7 +370,7 @@ __forceinline static FILE *php_win32_ioutil_fopen(const char *patha, const char
370370
free(pathw);
371371
free(modew);
372372

373-
if (0 > ret) {
373+
if (!ret) {
374374
_set_errno(err);
375375
}
376376
return ret;

0 commit comments

Comments
 (0)