]> granicus.if.org Git - python/commitdiff
From SF 1557890, fix problem of using wrong type in example.
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 28 Oct 2006 22:12:26 +0000 (22:12 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 28 Oct 2006 22:12:26 +0000 (22:12 +0000)
Will backport.

Doc/lib/libctypes.tex

index b2e488a807e7b5ad980c20b2a7e39dd1a9446bb0..5f486d4a3e10f29a068f4b13092df1d1c4a122bd 100755 (executable)
@@ -1821,7 +1821,7 @@ Here is the wrapping with \code{ctypes}:
 \begin{quote}
 \begin{verbatim}>>> from ctypes import c_int, WINFUNCTYPE, windll
 >>> from ctypes.wintypes import HWND, LPCSTR, UINT
->>> prototype = WINFUNCTYPE(c_int, HWND, LPCSTR, LPCSTR, c_uint)
+>>> prototype = WINFUNCTYPE(c_int, HWND, LPCSTR, LPCSTR, UINT)
 >>> paramflags = (1, "hwnd", 0), (1, "text", "Hi"), (1, "caption", None), (1, "flags", 0)
 >>> MessageBox = prototype(("MessageBoxA", windll.user32), paramflags)
 >>>\end{verbatim}