[pywin32-checkins] /hgroot/pywin32/pywin32: More autoduck fixes
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2012-07-20 14:33:47
|
changeset 7a8b207998e0 in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=7a8b207998e0 summary: More autoduck fixes diffstat: com/win32comext/propsys/src/PyIPropertyDescription.cpp | 5 +++-- com/win32comext/propsys/src/PyIPropertyEnumType.cpp | 2 +- com/win32comext/propsys/src/propsys.cpp | 3 +-- 3 files changed, 5 insertions(+), 5 deletions(-) diffs (61 lines): diff -r ae4aec079b11 -r 7a8b207998e0 com/win32comext/propsys/src/PyIPropertyDescription.cpp --- a/com/win32comext/propsys/src/PyIPropertyDescription.cpp Thu Jul 19 15:53:27 2012 +1000 +++ b/com/win32comext/propsys/src/PyIPropertyDescription.cpp Fri Jul 20 10:23:03 2012 -0400 @@ -264,6 +264,8 @@ PROPVARIANT *v1, *v2; PyObject *obv1, *obv2; WCHAR *desc1=NULL, *desc2=NULL; + // @pyparm <o PyPROPVARIANT>|var1||The first value + // @pyparm <o PyPROPVARIANT>|var2||The second value if ( !PyArg_ParseTuple(args, "OO:GetRelativeDescription", &obv1, &obv2)) return NULL; if (!PyWinObject_AsPROPVARIANT(obv1, &v1)) @@ -365,7 +367,6 @@ } // @pymethod <o PyIPropertyEnumTypeList>|PyIPropertyDescription|GetEnumTypeList|Returns an interface used for querying valid property range -// @comm IPropertyEnumTypeList is not supported yet PyObject *PyIPropertyDescription::GetEnumTypeList(PyObject *self, PyObject *args) { IPropertyDescription *pIPD = GetI(self); @@ -421,7 +422,7 @@ PROPDESC_FORMAT_FLAGS flags = PDFF_DEFAULT; WCHAR *display=NULL; PyObject *obval; - // @pyparm PROPVARIANT|Value||The value to be formatted + // @pyparm <o PyPROPVARIANT>|Value||The value to be formatted // @pyparm int|Flags|PDFF_DEFAULT|Combination of PROPDESC_FORMAT_FLAGS (PDFF_*) if (!PyArg_ParseTuple(args, "O|i:FormatForDisplay", &obval, &flags)) return NULL; diff -r ae4aec079b11 -r 7a8b207998e0 com/win32comext/propsys/src/PyIPropertyEnumType.cpp --- a/com/win32comext/propsys/src/PyIPropertyEnumType.cpp Thu Jul 19 15:53:27 2012 +1000 +++ b/com/win32comext/propsys/src/PyIPropertyEnumType.cpp Fri Jul 20 10:23:03 2012 -0400 @@ -109,7 +109,7 @@ return ret; } -// @object PyIPropertyEnumType|Description of the interface +// @object PyIPropertyEnumType|Contains information about an allowable value or range for a property static struct PyMethodDef PyIPropertyEnumType_methods[] = { { "GetEnumType", PyIPropertyEnumType::GetEnumType, METH_NOARGS }, // @pymeth GetEnumType|Retrieves the type (PROPENUMTYPE) diff -r ae4aec079b11 -r 7a8b207998e0 com/win32comext/propsys/src/propsys.cpp --- a/com/win32comext/propsys/src/propsys.cpp Thu Jul 19 15:53:27 2012 +1000 +++ b/com/win32comext/propsys/src/propsys.cpp Fri Jul 20 10:23:03 2012 -0400 @@ -191,7 +191,7 @@ PyWinObject_AsIID, &riid)) return NULL; if (!PyWinObject_AsWCHAR(obpath, &path, FALSE)) - return FALSE; + return NULL; if (!PyCom_InterfaceFromPyInstanceOrObject(obbindctx, IID_IBindCtx, (void **)&bindctx)) return NULL; @@ -273,7 +273,6 @@ // @pymethod bytes|propsys|StgSerializePropVariant|Serializes a <o PyPROPVARIANT> static PyObject *PyStgSerializePropVariant(PyObject *self, PyObject *args) { - int tmp = sizeof(PROPDESC_DISPLAYTYPE); PROPVARIANT *pv; SERIALIZEDPROPERTYVALUE *pspv=NULL; ULONG bufsize; |