Update of /cvsroot/pywin32/pywin32/com/win32com/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21318/com/win32com/src
Modified Files:
PyStorage.cpp PythonCOM.cpp
Log Message:
PyWinObject_AsHANDLE losts its 3rd param - None is always OK (zero always
was, so the distinction is futile
Index: PythonCOM.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PythonCOM.cpp,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** PythonCOM.cpp 27 Apr 2007 05:45:42 -0000 1.45
--- PythonCOM.cpp 3 Jun 2007 14:53:06 -0000 1.46
***************
*** 1661,1665 ****
if (!PyArg_ParseTuple(args, "OO:RegisterDragDrop", &obhwnd, &obd))
return NULL;
! if (!PyWinObject_AsHANDLE(obhwnd, (HANDLE *)&hwnd, FALSE))
return NULL;
// @pyparm <o PyHANDLE>|hwnd||Handle to a window
--- 1661,1665 ----
if (!PyArg_ParseTuple(args, "OO:RegisterDragDrop", &obhwnd, &obd))
return NULL;
! if (!PyWinObject_AsHANDLE(obhwnd, (HANDLE *)&hwnd))
return NULL;
// @pyparm <o PyHANDLE>|hwnd||Handle to a window
***************
*** 1691,1695 ****
if (!PyArg_ParseTuple(args, "O:RevokeDragDrop", &obhwnd))
return NULL;
! if (!PyWinObject_AsHANDLE(obhwnd, (HANDLE *)&hwnd, FALSE))
return NULL;
HRESULT hr;
--- 1691,1695 ----
if (!PyArg_ParseTuple(args, "O:RevokeDragDrop", &obhwnd))
return NULL;
! if (!PyWinObject_AsHANDLE(obhwnd, (HANDLE *)&hwnd))
return NULL;
HRESULT hr;
Index: PyStorage.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyStorage.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** PyStorage.cpp 27 Apr 2007 05:45:42 -0000 1.10
--- PyStorage.cpp 3 Jun 2007 14:53:06 -0000 1.11
***************
*** 112,116 ****
&bdelete)) // @pyparm bool|DeleteOnRelease|True|Indicates if global memory should be freed when IStream object is destroyed.
return NULL;
! if (!PyWinObject_AsHANDLE(obhglobal, &hglobal, TRUE))
return NULL;
PY_INTERFACE_PRECALL;
--- 112,116 ----
&bdelete)) // @pyparm bool|DeleteOnRelease|True|Indicates if global memory should be freed when IStream object is destroyed.
return NULL;
! if (!PyWinObject_AsHANDLE(obhglobal, &hglobal))
return NULL;
PY_INTERFACE_PRECALL;
|