[pywin32-checkins] pywin32/com/win32comext/shell/src PyIShellLink.cpp, 1.7, 1.8
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2007-01-21 02:36:33
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22649/com/win32comext/shell/src Modified Files: PyIShellLink.cpp Log Message: Fix place where HWND treated as long Index: PyIShellLink.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/src/PyIShellLink.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PyIShellLink.cpp 1 Jun 2006 10:23:05 -0000 1.7 --- PyIShellLink.cpp 21 Jan 2007 02:36:31 -0000 1.8 *************** *** 475,480 **** HWND hwnd; DWORD fFlags; ! if ( !PyArg_ParseTuple(args, "ll:Resolve", &hwnd, &fFlags) ) return NULL; HRESULT hr; --- 475,483 ---- HWND hwnd; + PyObject *obhwnd; DWORD fFlags; ! if ( !PyArg_ParseTuple(args, "Ol:Resolve", &obhwnd, &fFlags) ) ! return NULL; ! if (!PyWinObject_AsHANDLE(obhwnd, (HANDLE *)&hwnd, TRUE)) return NULL; HRESULT hr; |