diff options
author | David Miguel Susano Pinto <carandraug+dev@gmail.com> | 2022-11-28 16:05:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 16:05:21 (GMT) |
commit | 65417988a589e6edfeada83227a8b0884a64af4f (patch) | |
tree | ac7622ab4be4bef68805f983aac2d5975fcd4b80 /Doc/library | |
parent | 02f72b8b938e301bbaaf0142547014e074bd564c (diff) | |
download | cpython-65417988a589e6edfeada83227a8b0884a64af4f.zip cpython-65417988a589e6edfeada83227a8b0884a64af4f.tar.gz cpython-65417988a589e6edfeada83227a8b0884a64af4f.tar.bz2 |
Grammatical improvements for ctypes 'winmode' documentation (GH-19167)
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/ctypes.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 71e5545..fd5df87 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -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. |