diff options
Diffstat (limited to 'PC')
-rw-r--r-- | PC/import_nt.c | 2 |
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; |