Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 25544:2fa559fb6ec5 legacy-trunk
Fix [ 616716 ] Bug in PyErr_SetExcFromWindows
Ensure that even if FormatMessage fails we (a) don't crash, and (b) provide something useful.
Bugfix candidate.
| author | Mark Hammond <mhammond@skippinet.com.au> |
|---|---|
| date | Fri, 04 Oct 2002 00:13:02 +0000 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
