X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fmetadata_resource.c;h=3e8b7283e17f3267fb5d660df3db0412e41c9150;hb=4f8059f2d0a74a9922128b162d9c9343b305999c;hp=b55609e667d74e598dc867f576a5a649cc7a0dc8;hpb=1dc6ed6a978ee91dc0be44f70c5dd738696d54fb;p=wimlib diff --git a/src/metadata_resource.c b/src/metadata_resource.c index b55609e6..3e8b7283 100644 --- a/src/metadata_resource.c +++ b/src/metadata_resource.c @@ -194,7 +194,7 @@ recalculate_security_data_length(struct wim_security_data *sd) * the buffer to @hash. */ static int write_wim_resource_from_buffer(const void *buf, size_t buf_size, - filedes_t out_fd, int out_ctype, + int out_fd, int out_ctype, struct resource_entry *out_res_entry, u8 hash[SHA1_HASH_SIZE]) { @@ -226,7 +226,7 @@ write_metadata_resource(WIMStruct *w) u64 metadata_original_size; struct wim_security_data *sd; - wimlib_assert(w->out_fd != INVALID_FILEDES); + wimlib_assert(w->out_fd != -1); wimlib_assert(w->current_image != WIMLIB_NO_IMAGE); DEBUG("Writing metadata resource for image %d (offset = %"PRIu64")",