]> granicus.if.org Git - python/commitdiff
Bruce Wheeler quotes Mark Hammond with a different version of the
authorGuido van Rossum <guido@python.org>
Thu, 14 Jan 1999 22:40:30 +0000 (22:40 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 14 Jan 1999 22:40:30 +0000 (22:40 +0000)
last patch to this file: use pathLen, not bufSize, as the initializer.

PC/import_nt.c

index b506694bd58882d5d75bc49f582a3b5bdddb13ce..bed057fb7deb9c29813190ecc605f50e21e662b3 100644 (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;