diff options
Diffstat (limited to 'extensions/source/config')
-rw-r--r-- | extensions/source/config/WinUserInfo/WinUserInfoBe.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx index 2e97ab5581ac..9b721d50b36a 100644 --- a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx +++ b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx @@ -90,8 +90,8 @@ public: { sal::systools::CoInitializeGuard aCoInitializeGuard(COINIT_APARTMENTTHREADED); - auto pADsys = sal::systools::COMReference<IADsADSystemInfo>().CoCreateInstance( - CLSID_ADSystemInfo, nullptr, CLSCTX_INPROC_SERVER); + sal::systools::COMReference<IADsADSystemInfo> pADsys(CLSID_ADSystemInfo, nullptr, + CLSCTX_INPROC_SERVER); smartBSTR sUserDN; sal::systools::ThrowIfFailed(pADsys->get_UserName(&sUserDN.ptr), "get_UserName failed"); |