Skip to content

Commit eb503af

Browse files
committed
minifix
1 parent 6950d21 commit eb503af

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

arclite/archive.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,14 @@ void ArcAPI::load_libs(const std::wstring &path)
492492
#endif
493493
}
494494
}
495-
else {
495+
else { /// p7zip ?
496+
#ifdef Z7_USE_VIRTUAL_DESTRUCTOR_IN_IUNKNOWN
496497
arc_lib.version = get_module_version(arc_lib.module_path);
498+
#else
499+
fprintf(stderr, "ArcAPI::load_libs() skipped %s with (VIRTUAL_DESTRUCTOR_IN_IUNKNOWN???)\n", s2.c_str());
500+
dlclose(arc_lib.h_module);
501+
continue;
502+
#endif
497503
}
498504

499505
Func_GetHashers getHashers = reinterpret_cast<Func_GetHashers>(

arclite/plugin.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,6 +1603,11 @@ SHAREDSYMBOL HANDLE WINAPI AnalyseW(const AnalyseInfo *info)
16031603
if (!g_options.handle_create)
16041604
FAIL(E_INVALIDARG);
16051605

1606+
const ArcLibs &arc_libs = ArcAPI::libs();
1607+
if (!arc_libs.size()) {
1608+
FAIL(E_INVALIDARG);
1609+
}
1610+
16061611
return new Archives();
16071612
} else {
16081613
return analyse_open(info, true);

0 commit comments

Comments
 (0)