X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fextract.c;h=1c7c2b07f9a73edd6a006801e9cc1eb1fd802348;hp=a7e62697a696617fed01c4bdb3e2f242049346df;hb=e176e9731e696562bab8de7b9bd34c019deef3e8;hpb=26c7f8bb32e4a32001d409f1693e0df016270ed5 diff --git a/src/extract.c b/src/extract.c index a7e62697..1c7c2b07 100644 --- a/src/extract.c +++ b/src/extract.c @@ -1435,7 +1435,7 @@ read_pwm_stream_header(WIMStruct *pwm, struct wim_lookup_table_entry *lte, return 0; } - if (buf.stream_hdr.magic != PWM_STREAM_MAGIC) { + if (le64_to_cpu(buf.stream_hdr.magic) != PWM_STREAM_MAGIC) { ERROR("Data read on pipe is invalid (expected stream header)."); return WIMLIB_ERR_INVALID_PIPABLE_WIM; } @@ -1508,7 +1508,7 @@ extract_streams_from_pipe(struct apply_ctx *ctx) && (needed_lte = lookup_resource(lookup_table, found_lte->hash)) && (needed_lte->out_refcnt)) { - char *tmpfile_name = NULL; + tchar *tmpfile_name = NULL; struct wim_lookup_table_entry *lte_override; struct wim_lookup_table_entry tmpfile_lte;