Update of /cvsroot/pywin32/pywin32/com/win32com/server
In directory sc8-pr-cvs1:/tmp/cvs-serv14018
Modified Files:
policy.py
Log Message:
Don't mask exceptions in the object registration code.
Fixes 740417: Summary: Potential error concealment in COM server initialization
Index: policy.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/server/policy.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** policy.py 18 Mar 2003 07:12:42 -0000 1.13
--- policy.py 1 Jun 2003 12:51:51 -0000 1.14
***************
*** 198,206 ****
classSpec = win32api.RegQueryValue(win32con.HKEY_CLASSES_ROOT,
regSpec % clsid)
- myob = call_func(classSpec)
- self._wrap_(myob)
- return pythoncom.WrapObject(self, reqIID)
except win32api.error:
raise error, "The object is not correctly registered - %s key can not be read" % (regSpec % clsid)
def _wrap_(self, object):
--- 198,206 ----
classSpec = win32api.RegQueryValue(win32con.HKEY_CLASSES_ROOT,
regSpec % clsid)
except win32api.error:
raise error, "The object is not correctly registered - %s key can not be read" % (regSpec % clsid)
+ myob = call_func(classSpec)
+ self._wrap_(myob)
+ return pythoncom.WrapObject(self, reqIID)
def _wrap_(self, object):
|