so that the current directory does not get added to sys.path.
Also fixes #
1526785.
Core and builtins
-----------------
+- Patch #1232023: Stop including current directory in search
+ path on Windows.
+
- Fix some potential crashes found with failmalloc.
- Fix warnings reported by Klocwork's static analysis tool.
}
RegCloseKey(subKey);
}
+
+ /* return null if no path to return */
+ if (dataSize == 0) goto done;
+
/* original datasize from RegQueryInfo doesn't include the \0 */
dataBuf = malloc((dataSize+1) * sizeof(TCHAR));
if (dataBuf) {