diff Python/sysmodule.c @ 6352:b62a7a59414e legacy-trunk

Get DLL version from a variable.
author Guido van Rossum <guido@python.org>
date Mon, 29 Sep 1997 23:34:23 +0000
parents 1f2dfca52207
children f406ec35bfca
line wrap: on
line diff
--- a/Python/sysmodule.c	Mon Sep 29 23:31:11 1997 +0000
+++ b/Python/sysmodule.c	Mon Sep 29 23:34:23 1997 +0000
@@ -54,6 +54,8 @@
 
 #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 @@
 			     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())