]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[*** Not tested as I don't have Windows running right now! ***]
authorFred Drake <fdrake@acm.org>
Fri, 30 Jun 2000 17:48:51 +0000 (17:48 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 30 Jun 2000 17:48:51 +0000 (17:48 +0000)
commit25e1726d311d506b63de15b2b88a5e5fde0eda76
treeb125702ecd1633ffd731cba5e9acb3a75786f594
parent7efcafb994a5e97bf458b3138a7694a3c41b7ca7
[*** Not tested as I don't have Windows running right now! ***]

Trent Mick <trentm@activestate.com>:

Fix PC/msvcrtmodule.c and PC/winreg.c for Win64. Basically:

- sizeof(HKEY) > sizeof(long) on Win64, so use PyLong_FromVoidPtr()
instead of PyInt_FromLong() to return HKEY values on Win64

- Check for string overflow of an arbitrary registry value (I know
that ensuring that a registry value does not overflow 2**31 characters
seems ridiculous but it is *possible*).

Closes SourceForge patch #100517.
PC/_winreg.c
PC/msvcrtmodule.c