Commit 944f3b6e authored by Thomas Heller's avatar Thomas Heller

Remove a useless XXX comment.

Cosmetic changes to the code so that the #ifdef _UNICODE block
doesn't mess emacs code formatting.
parent cddabbf9
...@@ -851,17 +851,17 @@ GetComError(HRESULT errcode, GUID *riid, IUnknown *pIunk) ...@@ -851,17 +851,17 @@ GetComError(HRESULT errcode, GUID *riid, IUnknown *pIunk)
progid = NULL; progid = NULL;
ProgIDFromCLSID(&guid, &progid); ProgIDFromCLSID(&guid, &progid);
/* XXX Is COMError derived from WindowsError or not? */
text = FormatError(errcode); text = FormatError(errcode);
obj = Py_BuildValue(
#ifdef _UNICODE #ifdef _UNICODE
obj = Py_BuildValue("iu(uuuiu)", "iu(uuuiu)",
#else #else
obj = Py_BuildValue("is(uuuiu)", "is(uuuiu)",
#endif #endif
errcode, errcode,
text, text,
descr, source, helpfile, helpcontext, descr, source, helpfile, helpcontext,
progid); progid);
if (obj) { if (obj) {
PyErr_SetObject(ComError, obj); PyErr_SetObject(ComError, obj);
Py_DECREF(obj); Py_DECREF(obj);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment