New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update per jaraco.windows 3.4.1 #619

Merged
merged 1 commit into from Apr 24, 2016
Jump to file or symbol
Failed to load files and symbols.
+4 −4
Diff settings

Always

Just for now

View
@@ -1,6 +1,6 @@
"""
Windows API functions implemented as ctypes functions and classes as found
in jaraco.windows (3.3).
in jaraco.windows (3.4.1).
If you encounter issues with this module, please consider reporting the issues
in jaraco.windows and asking the author to port the fixes back here.
@@ -123,7 +123,7 @@ def handle_nonzero_success(result):
class MemoryMap(object):
"""
A memory map object which can have security attributes overrideden.
A memory map object which can have security attributes overridden.
"""
def __init__(self, name, length, security_attributes=None):
self.name = name
@@ -158,7 +158,7 @@ def write(self, msg):
if self.pos + n >= self.length: # A little safety.
raise ValueError("Refusing to write %d bytes" % n)
dest = self.view + self.pos
length = ctypes.wintypes.SIZE(n)
length = ctypes.c_size_t(n)
ctypes.windll.kernel32.RtlMoveMemory(dest, msg, length)
self.pos += n
@@ -168,7 +168,7 @@ def read(self, n):
"""
out = ctypes.create_string_buffer(n)
source = self.view + self.pos
length = ctypes.wintypes.SIZE(n)
length = ctypes.c_size_t(n)
ctypes.windll.kernel32.RtlMoveMemory(out, source, length)
self.pos += n
return out.raw
ProTip! Use n and p to navigate between commits in a pull request.