File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -492,8 +492,14 @@ void ArcAPI::load_libs(const std::wstring &path)
492
492
#endif
493
493
}
494
494
}
495
- else {
495
+ else { // / p7zip ?
496
+ #ifdef Z7_USE_VIRTUAL_DESTRUCTOR_IN_IUNKNOWN
496
497
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
497
503
}
498
504
499
505
Func_GetHashers getHashers = reinterpret_cast <Func_GetHashers>(
Original file line number Diff line number Diff line change @@ -1603,6 +1603,11 @@ SHAREDSYMBOL HANDLE WINAPI AnalyseW(const AnalyseInfo *info)
1603
1603
if (!g_options.handle_create )
1604
1604
FAIL (E_INVALIDARG);
1605
1605
1606
+ const ArcLibs &arc_libs = ArcAPI::libs ();
1607
+ if (!arc_libs.size ()) {
1608
+ FAIL (E_INVALIDARG);
1609
+ }
1610
+
1606
1611
return new Archives ();
1607
1612
} else {
1608
1613
return analyse_open (info, true );
You can’t perform that action at this time.
0 commit comments