include/systools/win32/comtools.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 38014fe3ef2ad66b43870ea3563bbff3046aa238 Author: Mike Kaganski <[email protected]> AuthorDate: Sat Jan 24 07:26:52 2026 +0100 Commit: Mike Kaganski <[email protected]> CommitDate: Sat Jan 24 09:46:36 2026 +0100 Change COMReference::QueryInterface a bit Use IID_PPV_ARGS, to avoid dependence on specific implementations of MS COM interfaces. Before this, it relied on QueryInterface taking one argument, which is a specific inline method implemented in <Unknwnbase.h>. Change-Id: I1386fb75893cf8f9a1063a3a802d50c9623a1416 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198031 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/include/systools/win32/comtools.hxx b/include/systools/win32/comtools.hxx index 9c2f49e8be0a..27a7b9d55824 100644 --- a/include/systools/win32/comtools.hxx +++ b/include/systools/win32/comtools.hxx @@ -169,7 +169,7 @@ namespace sal::systools T2* ip = nullptr; HRESULT hr = E_POINTER; if (com_ptr_) - hr = com_ptr_->QueryInterface(&ip); + hr = com_ptr_->QueryInterface(IID_PPV_ARGS(&ip)); if constexpr (std::is_same_v<TAG, COM_QUERY_THROW_TAG>) ThrowIfFailed(hr, "QueryInterface failed");
