Message278963
// 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;
} |
|
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 | |
|