Mercurial > hg
changeset 24494:f2b87f4856bf
win32: add comment about WinError
Prevent reintroducing the bug that was added in e34106fa0dc3 (and fixed with
a2285e2fc949).
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Sat, 28 Mar 2015 11:19:34 +0100 |
parents | efa094701a05 |
children | d2a3a2808974 |
files | mercurial/win32.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/win32.py Fri Mar 27 14:11:13 2015 -0700 +++ b/mercurial/win32.py Sat Mar 28 11:19:34 2015 +0100 @@ -279,7 +279,7 @@ buf = ctypes.create_string_buffer(size + 1) len = _kernel32.GetModuleFileNameA(None, ctypes.byref(buf), size) if len == 0: - raise ctypes.WinError() + raise ctypes.WinError() # Note: WinError is a function elif len == size: raise ctypes.WinError(_ERROR_INSUFFICIENT_BUFFER) return buf.value