fix wrong error check

This commit is contained in:
Anatol Belski 2017-05-17 12:50:41 +02:00
parent b73a73da25
commit 6e3d24bcf4

View 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;