summaryrefslogtreecommitdiff
path: root/Python/dynload_win.c
AgeCommit message (Collapse)AuthorLines
2004-07-02When importing an extension on Windows, the code reads the PE 'importThomas Heller-0/+12
table' of the dll, to make sure that the dll really was build for the correct Python version. It does this by looking for an entry 'pythonXY.dll' (X.Y is the Python version number). The code now checks the size of the dll's import table before reading entries from it. Before this patch, the code crashed trying to read the import table when the size was zero (as in Win2k's wmi.dll, for example). Look for imports of 'pythonXY_d.dll' in a debug build instead of 'pythonXY.dll'. Fixes SF 951851: Crash when reading "import table" of certain windows dlls. Already backported to the 2.3 branch.
2002-08-26Fix a couple of whitespace consistency nits.Fred Drake-2/+2
2002-06-30Patch #569753: Remove support for WIN16.Martin v. Löwis-29/+0
Rename all occurrences of MS_WIN32 to MS_WINDOWS.
2001-11-28Use PyOS_snprintf instead of sprintf.Jeremy Hylton-12/+14
2001-11-28Fixes for possible buffer overflows in sprintf() usages.Marc-André Lemburg-1/+1
2001-05-09Always pass a full path name to LoadLibraryEx(). Fixes some Windows 9x ↵Mark Hammond-17/+14
problems. As discussed on python-dev
2000-10-05Detect conflicting Python DLL on module import under Windows - as per [ ↵Mark Hammond-1/+152
Patch #101676 ]
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
This should match the situation in the 1.6b1 tree.
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
2000-06-28Trent Mick's Win64 changes: size_t vs. int or long; also some overflowGuido van Rossum-1/+1
tests.
1999-12-22Cleanup patches from Greg Stein:Guido van Rossum-1/+4
* in import.c, #ifdef out references to dynamic loading based on HAVE_DYNAMIC_LOADING * clean out the platform-specific crud from importdl.c. [ maybe fold this function into import.c and drop the importdl.c file? Greg.] * change GetDynLoadFunc's "funcname" parameter to "shortname". change "name" to "fqname" for clarification. * each GetDynLoadFunc now creates its own funcname value. WARNING: as I mentioned previously, we may run into an issue with a missing "_" on some platforms. Testing will show this pretty quickly, however. * move pathname munging into dynload_shlib.c
1999-12-20The old platform-specific contents of importdl.c, broken down into oneGuido van Rossum-0/+149
file per platform (really: per style of Dl API; e.g. all platforms using dlopen() are grouped together in dynload_shlib.c.). This is part of a set of patches by Greg Stein.