]> granicus.if.org Git - php/commitdiff
fix wrong error check
authorAnatol Belski <ab@php.net>
Wed, 17 May 2017 10:50:41 +0000 (12:50 +0200)
committerAnatol Belski <ab@php.net>
Wed, 17 May 2017 10:50:41 +0000 (12:50 +0200)
win32/ioutil.h

index 6714d57375c1ba67584c71a6060cf653888bfd01..1e781c665d854e86c28368812c61685c051177c5 100644 (file)
@@ -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;