[pywin32-checkins] /hgroot/pywin32/pywin32: fix compile error attempting to use 0 a...
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <pyw...@li...> - 2012-07-19 05:53:32
|
changeset ae4aec079b11 in /hgroot/pywin32/pywin32 details: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/hgroot/pywin32/pywin32?cmd=changeset;node=ae4aec079b11 summary: fix compile error attempting to use 0 as the default value for an enum diffstat: com/win32comext/propsys/src/PyIPropertyDescription.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (17 lines): diff -r 686032d6a1d3 -r ae4aec079b11 com/win32comext/propsys/src/PyIPropertyDescription.cpp --- a/com/win32comext/propsys/src/PyIPropertyDescription.cpp Tue Jul 17 22:13:45 2012 -0400 +++ b/com/win32comext/propsys/src/PyIPropertyDescription.cpp Thu Jul 19 15:53:27 2012 +1000 @@ -418,11 +418,11 @@ if ( pIPD == NULL ) return NULL; PROPVARIANT *val; - PROPDESC_FORMAT_FLAGS flags = 0; + PROPDESC_FORMAT_FLAGS flags = PDFF_DEFAULT; WCHAR *display=NULL; PyObject *obval; // @pyparm PROPVARIANT|Value||The value to be formatted - // @pyparm int|Flags|0|Combination of PROPDESC_FORMAT_FLAGS (PDFF_*) + // @pyparm int|Flags|PDFF_DEFAULT|Combination of PROPDESC_FORMAT_FLAGS (PDFF_*) if (!PyArg_ParseTuple(args, "O|i:FormatForDisplay", &obval, &flags)) return NULL; if (!PyWinObject_AsPROPVARIANT(obval, &val)) |