X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fextract.c;h=edac626e4e6eb94331d46435caf9d1360785ce39;hp=0663edd75ba92d4f736b8249d572b292e0adc04b;hb=f7a401210914f27b637cf201704144666f7cf851;hpb=ff3db5d2a3d2d0d7cd910ffe27489e0b98a97688 diff --git a/src/extract.c b/src/extract.c index 0663edd7..edac626e 100644 --- a/src/extract.c +++ b/src/extract.c @@ -1511,12 +1511,16 @@ check_extract_flags(const WIMStruct *wim, int *extract_flags_p) } #endif -#ifndef __WIN32__ if (extract_flags & WIMLIB_EXTRACT_FLAG_WIMBOOT) { +#ifdef __WIN32__ + if (!wim->filename) + return WIMLIB_ERR_NO_FILENAME; +#else ERROR("WIMBoot extraction is only supported on Windows!"); return WIMLIB_ERR_UNSUPPORTED; - } #endif + } + if ((extract_flags & (WIMLIB_EXTRACT_FLAG_RPFIX | WIMLIB_EXTRACT_FLAG_NORPFIX |