1. Christian Heimes
  2. expat

Commits

Christian Heimes  committed eb1f406

Windows doesn't have ENOTSUP

  • Participants
  • Parent commits 2802240
  • Branches xmlbomb

Comments (0)

Files changed (2)

File lib/expat.h

View file
    Otherwise, 0 shall be returned and errno set to indicate an error. The
    value shall not be modified if a function signals an error.
 
-   ENOTSUP feature is not supported
+   ENOENT feature is not supported
    EINVAL  value is invalid and outside the allowed range
 
    As of now three features are supported:

File lib/xmlparse.c

View file
         *value = (long)resetDTDFlag;
         return 1;
     default:
-        errno = ENOTSUP;
+        errno = ENOENT;
         return 0;
     }
 }
             return 0;
         }
     default:
-        errno = ENOTSUP;
+        errno = ENOENT;
         return 0;
     }
 }
         *value = (long)defaultResetDTDFlag;
         return 1;
     default:
-        errno = ENOTSUP;
+        errno = ENOENT;
         return 0;
     }
 }
             return 0;
         }
     default:
-        errno = ENOTSUP;
+        errno = ENOENT;
         return 0;
     }
 }