Update of /cvsroot/pywin32/pywin32/com/win32com/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12648/com/win32com/src
Modified Files:
PyStorage.cpp
Log Message:
autoduck: Clarify exception semantics for StgIsStorageFile
Index: PyStorage.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyStorage.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** PyStorage.cpp 12 Feb 2005 17:14:51 -0000 1.8
--- PyStorage.cpp 2 Dec 2005 07:53:53 -0000 1.9
***************
*** 118,122 ****
PY_INTERFACE_POSTCALL;
if (FAILED(hr)) return PyCom_BuildPyException(hr);
! // @rdesc The return value is 1 if a storage file, else 0
return PyInt_FromLong(hr==0);
}
--- 118,124 ----
PY_INTERFACE_POSTCALL;
if (FAILED(hr)) return PyCom_BuildPyException(hr);
! // @rdesc The return value is 1 if a storage file, else 0. This
! // method will also raise com_error if the StgIsStorageFile function
! // returns a failure HRESULT.
return PyInt_FromLong(hr==0);
}
|