summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-08-27 22:18:19 -0400
committerJeff Forcier <jeff@bitprophet.org>2016-12-05 20:49:40 -0800
commit32bfbe6012d26e8b0c1ad333207d809627e556a5 (patch)
tree39b0e4b993e24052cd2847021eeea896741c8349
parent844790306e523c9aa6ec8cdabef78ef03884fbbb (diff)
Update GlobalAlloc argtypes per jaraco.windows 3.6.2. Fixes #802.
-rw-r--r--paramiko/_winapi.py2
-rw-r--r--sites/www/changelog.rst2
2 files changed, 3 insertions, 1 deletions
diff --git a/paramiko/_winapi.py b/paramiko/_winapi.py
index 94bf6017..c9797d23 100644
--- a/paramiko/_winapi.py
+++ b/paramiko/_winapi.py
@@ -89,7 +89,7 @@ def handle_nonzero_success(result):
GMEM_MOVEABLE = 0x2
GlobalAlloc = ctypes.windll.kernel32.GlobalAlloc
-GlobalAlloc.argtypes = ctypes.wintypes.UINT, ctypes.c_ssize_t
+GlobalAlloc.argtypes = ctypes.wintypes.UINT, ctypes.c_size_t
GlobalAlloc.restype = ctypes.wintypes.HANDLE
GlobalLock = ctypes.windll.kernel32.GlobalLock
diff --git a/sites/www/changelog.rst b/sites/www/changelog.rst
index 96cdaf34..790ee984 100644
--- a/sites/www/changelog.rst
+++ b/sites/www/changelog.rst
@@ -2,6 +2,8 @@
Changelog
=========
+* :bug:`802 (1.16+)` Better align GlobalAlloc argument spec with the API
+ docs, incidentally improving supported Python versions on Windows.
* :bug:`824` Fix the implementation of ``PKey.write_private_key_file`` (this
method is only publicly defined on subclasses; the fix was in the private
real implementation) so it passes the correct params to ``open()``. This bug