[PATCH 1 of 5] port win32.py to using the Python ctypes library
Adrian Buehlmann
adrian at cadifra.com
Sun Feb 13 13:21:09 UTC 2011
On 2011-02-13 14:07, Adrian Buehlmann wrote:
> (although it's quite beyond comprehension why Microsoft returns success on
> GetModuleFileNameA if the target buffer is too small)
OOPS, I'm wrong, the last error code is set to ERROR_INSUFFICIENT_BUFFER
in that case. But this can only be found out with calling GetLastError()
if the returned value is the same as the size provided.
(Still a horrible API design as usual).
More information about the Mercurial-devel
mailing list