From: Guido van Rossum Date: Thu, 14 Jan 1999 22:40:30 +0000 (+0000) Subject: Bruce Wheeler quotes Mark Hammond with a different version of the X-Git-Tag: v1.5.2b2~332 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=945554709e06aba86509aa0cf6ae59a004499145;p=python Bruce Wheeler quotes Mark Hammond with a different version of the last patch to this file: use pathLen, not bufSize, as the initializer. --- diff --git a/PC/import_nt.c b/PC/import_nt.c index b506694bd5..bed057fb7d 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;