summaryrefslogtreecommitdiff
path: root/PC/winreg.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.3Brian Curtin2012-12-271-1/+1
| |\
| * | Issue #16719: Get rid of WindowsError. Use OSError insteadAndrew Svetlov2012-12-191-2/+2
| | | | | | | | | | | | Patch by Serhiy Storchaka.
* | | 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.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 #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-37/+49
|\ \ | |/ |/|
| * Merge with 3.2 (Issue #14471)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
| | |
* | | Fix #16197. Update docstrings and documentation to match winreg code.Brian Curtin2012-10-291-77/+109
| |/ |/| | | | | Patch by Zachary Ware.
* | Issue #14471: Fix a possible buffer overrun in the winreg module.Kristj?n Valur J?nsson2012-04-021-1/+1
|/
* Follow up to #9778: fix regressions on 64-bit Windows buildsAntoine Pitrou2010-10-231-1/+1
|
* Implement #8521. Added named argument handling to winreg's CreateKeyEx,Brian Curtin2010-09-271-33/+43
| | | | | | | | DeleteKeyEx, and OpenKeyEx. Note that CKE and DKE are new functions for 3.2 so I didn't give them a versionchanged because of the existing versionadded. OpenKeyEx already existed so it gets a versionchanged tag.
* Properly downcast from size_t/Py_ssize_t in a few places.Brian Curtin2010-08-171-4/+6
|
* Fix compilation warning on WindowsAmaury Forgeot d'Arc2010-08-161-2/+2
|
* Fix a compile warning missed during porting (wchar_t/char) and move aBrian Curtin2010-06-081-4/+4
| | | | variable declaration outside of a loop. #2810 was when this first went in.
* Fix #2810 - handle the case where some registry calls returnBrian Curtin2010-05-261-28/+91
| | | | | | ERROR_MORE_DATA, requiring another call to get the remaining data. Patch by Daniel Stutzbach
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-1025/+1025
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Port #7347 to py3k.Brian Curtin2010-04-211-12/+107
| | | | Add CreateKeyEx and DeleteKeyEx, along with test improvements.
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-1/+1
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Issue #1717, stage 2: remove uses of tp_compare in Modules and mostMark Dickinson2009-02-011-2/+2
| | | | Objects.
* Issue #4910, patch 3/3: rename nb_long to nb_reservedMark Dickinson2009-01-171-1/+1
|
* Issue 4910, patch 2 of (probably) 3: pave the way for renaming ofMark Dickinson2009-01-151-1/+1
| | | | | | | | | nb_long: remove last remaining use of nb_long (in the struct module) from the core, set nb_long slots on all builtin and extension types to 0, and remove uses of __long__ in test_complex and test_binop. Reviewed by Benjamin Peterson.
* fixes deferred/release blocker issue #3797: Fixed the dbm, marshal, mmap,Gregory P. Smith2008-09-061-1/+1
| | | | | ossaudiodev, & winreg modules to return bytes objects instead of bytearray objects.
* Merged revisions 65654 via svnmerge fromMartin v. Löwis2008-08-131-2/+2
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r65654 | martin.v.loewis | 2008-08-12 16:49:50 +0200 (Tue, 12 Aug 2008) | 6 lines Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, by denying s# to parse objects that have a releasebuffer procedure, and introducing s*. More module might need to get converted to use s*. ........
* #3247 Get rid of Py_FindMethod; use tp_members instead.Amaury Forgeot d'Arc2008-07-021-36/+28
| | | | | | | Otherwise dir(_sre.SRE_Match) returns an empty list. First step: handle most occurrences, remove tp_getattr and fill the tp_methods and tp_members slots. Add some test about attribute access.
* Remove nb_reserved (nb_coerce), nb_hex, and nb_oct from PyNumberMethodsBenjamin Peterson2008-06-111-3/+0
|
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-5/+19
|
* Renamed PyBytes to PyByteArrayChristian Heimes2008-05-261-1/+1
|
* #2879: rename _winreg to winreg.Georg Brandl2008-05-251-0/+1645
|
* Finish converting the winreg extension to _winreg.Fred Drake2000-06-291-1474/+0
|
* Cleanup a few docstrings.Mark Hammond2000-06-091-15/+17
|
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-5/+7
| | | | | | | | | | For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
* Mark Hammond: new winreg module; updated dllbase file.Guido van Rossum2000-03-281-0/+1470