homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Kelvin You
Recipients Kelvin You
Date 2016年10月19日.07:28:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476862081.01.0.00079290874453.issue28474@psf.upfronthosting.co.za>
In-reply-to
Content
// callproc.c
static PyObject *format_error(PyObject *self, PyObject *args)
{
 PyObject *result;
 wchar_t *lpMsgBuf;
 DWORD code = 0;
 if (!PyArg_ParseTuple(args, "|i:FormatError", &code)) 
 ^ Here the format string should be "|I:FormatError"
 return NULL;
 if (code == 0)
 code = GetLastError();
 lpMsgBuf = FormatError(code);
 if (lpMsgBuf) {
 result = PyUnicode_FromWideChar(lpMsgBuf, wcslen(lpMsgBuf));
 LocalFree(lpMsgBuf);
 } else {
 result = PyUnicode_FromString("<no description>");
 }
 return result;
}
History
Date User Action Args
2016年10月19日 07:28:01Kelvin Yousetrecipients: + Kelvin You
2016年10月19日 07:28:01Kelvin Yousetmessageid: <1476862081.01.0.00079290874453.issue28474@psf.upfronthosting.co.za>
2016年10月19日 07:28:00Kelvin Youlinkissue28474 messages
2016年10月19日 07:28:00Kelvin Youcreate

AltStyle によって変換されたページ (->オリジナル) /