From: Eric Biggers Date: Sat, 25 Apr 2015 06:13:08 +0000 (-0500) Subject: wimlib_get_xml_data(): should use NO_FILENAME error X-Git-Tag: v1.8.1~45 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=8846dc57c638e837f38cd28dcd41f71e83d648c2 wimlib_get_xml_data(): should use NO_FILENAME error --- diff --git a/src/xml.c b/src/xml.c index 24fb3287..279c3382 100644 --- a/src/xml.c +++ b/src/xml.c @@ -1631,7 +1631,7 @@ wimlib_get_xml_data(WIMStruct *wim, void **buf_ret, size_t *bufsize_ret) const struct wim_reshdr *xml_reshdr; if (wim->filename == NULL && filedes_is_seekable(&wim->in_fd)) - return WIMLIB_ERR_INVALID_PARAM; + return WIMLIB_ERR_NO_FILENAME; if (buf_ret == NULL || bufsize_ret == NULL) return WIMLIB_ERR_INVALID_PARAM;