Grammatical improvements for ctypes 'winmode' documentation (GH-19167)

This commit is contained in:
David Miguel Susano Pinto 2022-11-28 16:05:21 +00:00 committed by GitHub
parent 02f72b8b93
commit 65417988a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1440,8 +1440,8 @@ copy of the windows error code.
The *winmode* parameter is used on Windows to specify how the library is loaded
(since *mode* is ignored). It takes any value that is valid for the Win32 API
``LoadLibraryEx`` flags parameter. When omitted, the default is to use the flags
that result in the most secure DLL load to avoiding issues such as DLL
``LoadLibraryEx`` flags parameter. When omitted, the default is to use the
flags that result in the most secure DLL load, which avoids issues such as DLL
hijacking. Passing the full path to the DLL is the safest way to ensure the
correct library and dependencies are loaded.