[pywin32-checkins] pywin32/com/win32comext/shell/src PyIContextMenu.cpp, 1.7, 1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-11-24 06:09:53
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7376/com/win32comext/shell/src Modified Files: PyIContextMenu.cpp Log Message: Fix IContextMenu::GetCommandString to use a UINT_PTR when calling the interface (it was already correct for the gateway) Index: PyIContextMenu.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/src/PyIContextMenu.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PyIContextMenu.cpp 7 Aug 2008 07:41:33 -0000 1.7 --- PyIContextMenu.cpp 24 Nov 2008 06:09:46 -0000 1.8 *************** *** 93,100 **** // @pyparm int|uType||One of the shellcon.GCS_* constants // @pyparm int|cchMax|2048|Size of buffer to create for returned string ! UINT idCmd; UINT uType; UINT cchMax = 2048; ! if ( !PyArg_ParseTuple(args, "II|I:GetCommandString", &idCmd, &uType, &cchMax) ) return NULL; --- 93,104 ---- // @pyparm int|uType||One of the shellcon.GCS_* constants // @pyparm int|cchMax|2048|Size of buffer to create for returned string ! PyObject *obCmd; UINT uType; UINT cchMax = 2048; ! if ( !PyArg_ParseTuple(args, "OI|I:GetCommandString", &obCmd, &uType, &cchMax) ) ! return NULL; ! ! UINT_PTR idCmd; ! if (!PyWinLong_AsULONG_PTR(obCmd, (ULONG_PTR *)&idCmd)) return NULL; |