summaryrefslogtreecommitdiffstats
path: root/PC/import_nt.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-14 22:40:30 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-14 22:40:30 (GMT)
commit945554709e06aba86509aa0cf6ae59a004499145 (patch)
tree8881814fad4101068b126fcfd61375d6c9d7ad86 /PC/import_nt.c
parent589bc63e84151dace45ea6104a70ee30184ee482 (diff)
downloadcpython-945554709e06aba86509aa0cf6ae59a004499145.zip
cpython-945554709e06aba86509aa0cf6ae59a004499145.tar.gz
cpython-945554709e06aba86509aa0cf6ae59a004499145.tar.bz2
Bruce Wheeler quotes Mark Hammond with a different version of the
last patch to this file: use pathLen, not bufSize, as the initializer.
Diffstat (limited to 'PC/import_nt.c')
-rw-r--r--PC/import_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/import_nt.c b/PC/import_nt.c
index b506694..bed057f 100644
--- a/PC/import_nt.c
+++ b/PC/import_nt.c
@@ -54,7 +54,7 @@ FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppF
moduleKey = alloca(bufSize);
sprintf(moduleKey, "Software\\Python\\PythonCore\\%s\\Modules\\%s%s", PyWin_DLLVersionString, moduleName, debugString);
- modNameSize = bufSize;
+ modNameSize = pathLen;
regStat = RegQueryValue(keyBase, moduleKey, pathBuf, &modNameSize);
if (regStat!=ERROR_SUCCESS)
return NULL;