mirror of https://github.com/python/cpython.git
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:
parent
589bc63e84
commit
945554709e
|
@ -54,7 +54,7 @@ FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppF
|
||||||
moduleKey = alloca(bufSize);
|
moduleKey = alloca(bufSize);
|
||||||
sprintf(moduleKey, "Software\\Python\\PythonCore\\%s\\Modules\\%s%s", PyWin_DLLVersionString, moduleName, debugString);
|
sprintf(moduleKey, "Software\\Python\\PythonCore\\%s\\Modules\\%s%s", PyWin_DLLVersionString, moduleName, debugString);
|
||||||
|
|
||||||
modNameSize = bufSize;
|
modNameSize = pathLen;
|
||||||
regStat = RegQueryValue(keyBase, moduleKey, pathBuf, &modNameSize);
|
regStat = RegQueryValue(keyBase, moduleKey, pathBuf, &modNameSize);
|
||||||
if (regStat!=ERROR_SUCCESS)
|
if (regStat!=ERROR_SUCCESS)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue