diff --git a/src/types/ScreenInfoUiaProviderBase.cpp b/src/types/ScreenInfoUiaProviderBase.cpp index 022b08845..831a50382 100644 --- a/src/types/ScreenInfoUiaProviderBase.cpp +++ b/src/types/ScreenInfoUiaProviderBase.cpp @@ -19,7 +19,7 @@ SAFEARRAY* BuildIntSafeArray(std::basic_string_view data) { LONG lIndex = 0; if (FAILED(SizeTToLong(i, &lIndex)) || - FAILED(SafeArrayPutElement(psa, &lIndex, (void*)&(data.at(i))))) + FAILED(SafeArrayPutElement(psa, &lIndex, (void*)&(data.at(i))))) { SafeArrayDestroy(psa); psa = nullptr;