Skip to content

Commit

Permalink
reducing redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dry-Leaf authored Dec 7, 2024
1 parent 6053287 commit 577e3da
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/dll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use windows as Windows;
use windows::core::{implement, IUnknown, Interface, GUID, HRESULT};
use windows::Win32::{
Foundation::*, System::Com::IClassFactory_Impl, System::LibraryLoader::GetModuleFileNameW,
UI::Shell::PropertiesSystem::{IInitializeWithStream, IPropertyStore},
System::SystemServices::DLL_PROCESS_ATTACH,
};

Expand Down Expand Up @@ -39,11 +40,7 @@ impl IClassFactory_Impl for ClassFactory_Impl {
let unknown: IUnknown = JXLWICBitmapDecoder::default().into();
unknown.query(iid, object).ok()
}
windows::Win32::UI::Shell::PropertiesSystem::IPropertyStore::IID => {
let unknown: IUnknown = JXLPropertyStore::default().into();
unknown.query(iid, object).ok()
}
windows::Win32::UI::Shell::PropertiesSystem::IInitializeWithStream::IID => {
IPropertyStore::IID | IInitializeWithStream::IID => {
let unknown: IUnknown = JXLPropertyStore::default().into();
unknown.query(iid, object).ok()
}
Expand Down

0 comments on commit 577e3da

Please sign in to comment.