diff options
Diffstat (limited to 'CPP/7zip/UI/Common/HandlerLoader.h')
-rwxr-xr-x | CPP/7zip/UI/Common/HandlerLoader.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP/7zip/UI/Common/HandlerLoader.h b/CPP/7zip/UI/Common/HandlerLoader.h index 2a878019..4c7e1a8f 100755 --- a/CPP/7zip/UI/Common/HandlerLoader.h +++ b/CPP/7zip/UI/Common/HandlerLoader.h @@ -7,14 +7,14 @@ #include "Windows/DLL.h" typedef UInt32 (WINAPI * CreateObjectFunc)( - const GUID *clsID, - const GUID *interfaceID, + const GUID *clsID, + const GUID *interfaceID, void **outObject); class CHandlerLoader: public NWindows::NDLL::CLibrary { public: - HRESULT CreateHandler(LPCWSTR filepath, REFGUID clsID, + HRESULT CreateHandler(LPCWSTR filepath, REFGUID clsID, void **archive, bool outHandler) { if (!Load(filepath)) @@ -27,7 +27,7 @@ public: Free(); return res; } - HRESULT res = createObject(&clsID, + HRESULT res = createObject(&clsID, outHandler ? &IID_IOutArchive : &IID_IInArchive, (void **)archive); if (res != 0) Free(); |