Thread: [pywin32-checkins] pywin32/com/win32comext/shell/src shell.cpp, 1.77, 1.78
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2010-11-17 04:12:04
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv1274/com/win32comext/shell/src Modified Files: shell.cpp Log Message: add a couple of casts to fix compiler errors in certain SDK versions Index: shell.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/src/shell.cpp,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** shell.cpp 23 Oct 2010 05:21:24 -0000 1.77 --- shell.cpp 17 Nov 2010 04:11:56 -0000 1.78 *************** *** 965,969 **** BOOL PyObject_AsEXPLORER_BROWSER_OPTIONS(PyObject *ob, EXPLORER_BROWSER_OPTIONS *ret) { ! *ret = PyLong_AsUnsignedLongMask(ob); return *ret != -1 || !PyErr_Occurred(); } --- 965,969 ---- BOOL PyObject_AsEXPLORER_BROWSER_OPTIONS(PyObject *ob, EXPLORER_BROWSER_OPTIONS *ret) { ! *ret = (EXPLORER_BROWSER_OPTIONS)PyLong_AsUnsignedLongMask(ob); return *ret != -1 || !PyErr_Occurred(); } *************** *** 976,980 **** BOOL PyObject_AsEXPLORER_BROWSER_FILL_FLAGS(PyObject *ob, EXPLORER_BROWSER_FILL_FLAGS *ret) { ! *ret = PyLong_AsUnsignedLongMask(ob); return *ret != -1 || !PyErr_Occurred(); } --- 976,980 ---- BOOL PyObject_AsEXPLORER_BROWSER_FILL_FLAGS(PyObject *ob, EXPLORER_BROWSER_FILL_FLAGS *ret) { ! *ret = (EXPLORER_BROWSER_FILL_FLAGS)PyLong_AsUnsignedLongMask(ob); return *ret != -1 || !PyErr_Occurred(); } |