Bruce Wheeler quotes Mark Hammond with a different version of the

last patch to this file: use pathLen, not bufSize, as the initializer.
This commit is contained in:
Guido van Rossum 1999-01-14 22:40:30 +00:00
parent 589bc63e84
commit 945554709e
1 changed files with 1 additions and 1 deletions

View File

@ -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;