summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-29 23:34:23 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-29 23:34:23 (GMT)
commit6c1e5f2033ff9b1cfe6bda1da4ac6e3c88a47240 (patch)
tree5b9199a093deeb200cd0961bfb0e8a4ee941a2b2 /Python
parent4f3bf1e383c0a5d10c8b581d0ca6d0140e3abce6 (diff)
downloadcpython-6c1e5f2033ff9b1cfe6bda1da4ac6e3c88a47240.zip
cpython-6c1e5f2033ff9b1cfe6bda1da4ac6e3c88a47240.tar.gz
cpython-6c1e5f2033ff9b1cfe6bda1da4ac6e3c88a47240.tar.bz2
Get DLL version from a variable.
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 96f10f3..59b7aab 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -54,6 +54,8 @@ Data members:
#ifdef MS_COREDLL
extern void *PyWin_DLLhModule;
+/* A string loaded from the DLL at startup: */
+extern const char *PyWin_DLLVersionString;
#endif
PyObject *
@@ -319,7 +321,7 @@ _PySys_Init()
v = PyInt_FromLong((int)PyWin_DLLhModule));
Py_XDECREF(v);
PyDict_SetItemString(sysdict, "winver",
- v = PyString_FromString(MS_DLL_ID));
+ v = PyString_FromString(PyWin_DLLVersionString));
Py_XDECREF(v);
#endif
if (PyErr_Occurred())