diff --git a/com/win32com/src/oleargs.cpp b/com/win32com/src/oleargs.cpp index 33c925987..0e565ae5e 100644 --- a/com/win32com/src/oleargs.cpp +++ b/com/win32com/src/oleargs.cpp @@ -860,7 +860,7 @@ static PyObject *PyCom_PyObjectFromSAFEARRAYDimensionItem(SAFEARRAY *psa, VARENU hres = SafeArrayGetElement(psa, arrayIndices, &str); if (FAILED(hres)) break; - subitem = PyWinObject_FromBstr(str); + subitem = PyWinObject_FromBstr(str, TRUE); break; } case VT_DISPATCH: { @@ -868,7 +868,7 @@ static PyObject *PyCom_PyObjectFromSAFEARRAYDimensionItem(SAFEARRAY *psa, VARENU hres = SafeArrayGetElement(psa, arrayIndices, &pDisp); if (FAILED(hres)) break; - subitem = PyCom_PyObjectFromIUnknown(pDisp, IID_IDispatch, TRUE); + subitem = PyCom_PyObjectFromIUnknown(pDisp, IID_IDispatch, FALSE); break; } // case VT_ERROR - handled above with I4 @@ -895,7 +895,7 @@ static PyObject *PyCom_PyObjectFromSAFEARRAYDimensionItem(SAFEARRAY *psa, VARENU hres = SafeArrayGetElement(psa, arrayIndices, &pUnk); if (FAILED(hres)) break; - subitem = PyCom_PyObjectFromIUnknown(pUnk, IID_IUnknown, TRUE); + subitem = PyCom_PyObjectFromIUnknown(pUnk, IID_IUnknown, FALSE); break; } // case VT_DECIMAL