Message278963
| 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:01 | Kelvin You | set | recipients:
+ Kelvin You |
| 2016年10月19日 07:28:01 | Kelvin You | set | messageid: <1476862081.01.0.00079290874453.issue28474@psf.upfronthosting.co.za> |
| 2016年10月19日 07:28:00 | Kelvin You | link | issue28474 messages |
| 2016年10月19日 07:28:00 | Kelvin You | create |
|