summaryrefslogtreecommitdiffstats
path: root/PC/winreg.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32587: Fixes unsafe downcast in PC/winreg.c (GH-15766)Steve Dower2019-09-091-1/+1
|
* bpo-32587: Make winreg.REG_MULTI_SZ support zero-length strings (#13239)Zackery Spytz2019-09-091-16/+25
| | | | | | * bpo-32587: Make winreg.REG_MULTI_SZ support PendingFileRenameOperations * Address review comments.
* bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in ↵David H2019-07-311-6/+6
| | | | docs. (GH-15062)
* bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵Jeroen Demeyer2019-05-311-2/+2
| | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async
* bpo-36672: Fix a compiler warning in winreg.SetValue() (GH-12882)Zackery Spytz2019-04-221-1/+1
|
* bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687)Zackery Spytz2019-04-221-1/+1
|
* bpo-8677: use PY_DWORD_MAX instead of INT_MAX (GH-12469)Inada Naoki2019-03-201-5/+3
|
* bpo-8677: use PY_SSIZE_T_CLEAN in PC/winreg.c (GH-12466)Inada Naoki2019-03-201-0/+6
|
* bpo-33895: Relase GIL while calling functions that acquire Windows loader ↵Tony Roberts2019-02-021-0/+8
| | | | | lock (GH-7789) LoadLibrary, GetProcAddress, FreeLibrary and GetModuleHandle acquire the system loader lock. Calling these while holding the GIL will cause a deadlock on the rare occasion that another thread is detaching and needs to destroy its thread state at the same time.
* bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. ↵Serhiy Storchaka2018-12-141-36/+40
| | | | (GH-11150)
* bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)Zackery Spytz2018-12-081-3/+7
| | | | | | | | | | In _localemodule.c and selectmodule.c, remove dead code that would cause double decrefs if run. In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases where a new list is populated and there is no possibility of an error. In addition, check if the list changed size in the loop in array_array_fromlist().
* bpo-35059: PyObject_INIT() casts to PyObject* (GH-10674)Victor Stinner2018-11-231-1/+1
| | | | | | PyObject_INIT() and PyObject_INIT_VAR() now cast their first argument to PyObject*, as done in Python 3.7. Revert partially commit b4435e20a92af474f117b78b98ddc6f515363af5.
* Replace dead code with an assertion in winreg.c. (GH-10028)Zackery Spytz2018-11-081-2/+1
|
* bpo-35059: Convert PyObject_INIT() to function (GH-10077)Victor Stinner2018-10-261-1/+1
| | | | | * Convert PyObject_INIT() and PyObject_INIT_VAR() macros to static inline functions. * Fix usage of these functions: cast to PyObject* or PyVarObject*.
* bpo-32747: Remove trailing spaces in docstrings. (GH-5491)oldk2018-02-021-1/+1
|
* Fix miscellaneous typos (#4275)luzpaz2017-11-051-3/+3
|
* bpo-9566: Fix some Windows x64 compiler warnings (#2492)Segev Finer2017-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-9566: Silence liblzma warnings * bpo-9566: Silence tcl warnings * bpo-9566: Silence tk warnings * bpo-9566: Silence tix warnings * bpo-9566: Fix some library warnings * bpo-9566: Fix msvcrtmodule.c warnings * bpo-9566: Silence _bz2 warnings * bpo-9566: Fixed some _ssl warnings * bpo-9566: Fix _msi warnings * bpo-9566: Silence _ctypes warnings * Revert "bpo-9566: Fixed some _ssl warnings" This reverts commit a639001c949ba53338a9ee047d2ec1efd2505e6f. * bpo-9566: Also consider NULL as a possible error in HANDLE_return_converter * bpo-9566: whitespace fixes
* Issue #25778: winreg does not truncase string correctly (Patch by Eryk Sun)Steve Dower2016-12-171-7/+6
|
* - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-46/+46
|\ | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-071-46/+46
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | Regenerate Argument Clinic code for issue #23026.Serhiy Storchaka2016-06-091-1/+1
| |
* | Closes #23026: Documentation improvements and code formattingSteve Dower2016-05-251-4/+4
| |
* | Issue #23026: winreg.QueryValueEx() now return an integer for REG_QWORD ↵Steve Dower2016-05-241-2/+30
|/ | | | type. (Patch by hakril)
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-4/+4
|
* Issue #20172: Update clinicizations to current clinic.Zachary Ware2015-05-131-32/+42
|
* Issue #20172: Convert the winreg module to Argument Clinic.Zachary Ware2015-05-131-669/+722
|
* Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-3/+3
| | | | overflows. Added few missed PyErr_NoMemory().
* Issue #21151: Fixed a segfault in the winreg module.Zachary Ware2014-07-031-1/+3
| | | | | | | When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx, PyMem_DEL was called on an uninitialized buffer. Patch by John Ehresman. (Also an incidental typo fix in a comment in test_winreg)
* Issue #20908: PyMem_Malloc() must be used with PyMem_Free(), not with free()Victor Stinner2014-03-131-2/+2
|
* MERGE: Closes #20908: Memory leak in Reg2Py()Jesus Cea2014-03-131-1/+4
|\
| * Closes #20908: Memory leak in Reg2Py()Jesus Cea2014-03-131-1/+4
| |
* | Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-3/+2
|\ \ | |/ | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-3/+2
| | | | | | | | error messages and comments.
* | Issue #18203: Replace malloc() with PyMem_Malloc() in Python modulesVictor Stinner2013-07-071-2/+2
| | | | | | | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise.
* | Merge 3.3Brian Curtin2012-12-271-2/+2
|\ \ | |/
| * Merge 3.2Brian Curtin2012-12-271-2/+2
| |\
| | * Fix #16759. Convert DWORD registry values using PyLong_FromUnsignedLong.Brian Curtin2012-12-271-2/+2
| | | | | | | | | | | | | | | When converting REG_DWORD registry values into Python ints, the conversion needs to be made from an *unsigned* long to match the DWORD type.
* | | Merge 3.3Brian Curtin2012-12-271-1/+1
|\ \ \ | |/ /
| * | Merge 3.2Brian Curtin2012-12-271-1/+1
| |\ \ | | |/
| | * Fix #14420. Use PyLong_AsUnsignedLong to support the full range of DWORD.Brian Curtin2012-12-271-1/+1
| | | | | | | | | | | | | | | This fixes an OverflowError seen in winreg.SetValueEx when passed winreg.REG_DWORD values that should be supported by the underlying API.
* | | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-191-2/+2
|/ / | | | | | | Patch by Serhiy Storchaka.
* | Issue #16197: Fix several small errors in winreg documentation.Andrew Svetlov2012-10-311-8/+8
| | | | | | | | Initial patch by Zachary Ware.
* | Merge 3.2Brian Curtin2012-10-291-77/+109
|\ \ | |/
| * Fix #16197. Update docstrings and documentation to match winreg code.Brian Curtin2012-10-291-77/+109
| | | | | | | | Patch by Zachary Ware.
* | Merge with 3.2 (Issue #14471)Kristján Valur Jónsson2012-04-021-1/+1
|\ \ | |/
| * Issue #14471: Fix a possible buffer overrun in the winreg module.Kristján Valur Jónsson2012-04-021-1/+1
| |
* | Use GetModuleHandleW to avoid *A functions where possible.Martin v. Löwis2012-01-141-4/+4
| |
* | Use the new Unicode APIVictor Stinner2011-11-221-5/+5
| | | | | | | | | | | | | | | | * Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) * Replce PyUnicode_FromUnicode(str, len) by PyUnicode_FromWideChar(str, len) * Replace Py_UNICODE by wchar_t * posix_putenv() uses PyUnicode_FromFormat() to create the string, instead of PyUnicode_FromUnicode() + _snwprintf()
* | winreg module avoids the deprecated Unicode APIVictor Stinner2011-11-211-24/+36
| |
* | Implement PEP 393.Martin v. Löwis2011-09-281-4/+4
|/