diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-05-25 18:26:07 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-05-25 18:26:07 (GMT) |
commit | 4d4bc42c8b2b4b546b36e0c3ecb1e86d57017cee (patch) | |
tree | 9c4ba11003697003abedd713b7129bc696d89828 /PC/winreg.c | |
parent | 74f2fe64899c3d5c083af8f839af8b79c700fa6d (diff) | |
download | cpython-4d4bc42c8b2b4b546b36e0c3ecb1e86d57017cee.zip cpython-4d4bc42c8b2b4b546b36e0c3ecb1e86d57017cee.tar.gz cpython-4d4bc42c8b2b4b546b36e0c3ecb1e86d57017cee.tar.bz2 |
Closes #23026: Documentation improvements and code formatting
Diffstat (limited to 'PC/winreg.c')
-rw-r--r-- | PC/winreg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/PC/winreg.c b/PC/winreg.c index 49e1cd7..d704d66 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -549,7 +549,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize) if (value != Py_None && !PyLong_Check(value)) return FALSE; *retDataBuf = (BYTE *)PyMem_NEW(DWORD, 1); - if (*retDataBuf==NULL){ + if (*retDataBuf == NULL){ PyErr_NoMemory(); return FALSE; } @@ -567,7 +567,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize) if (value != Py_None && !PyLong_Check(value)) return FALSE; *retDataBuf = (BYTE *)PyMem_NEW(DWORD64, 1); - if (*retDataBuf==NULL){ + if (*retDataBuf == NULL){ PyErr_NoMemory(); return FALSE; } @@ -637,7 +637,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize) *retDataSize = size + 2; *retDataBuf = (BYTE *)PyMem_NEW(char, *retDataSize); - if (*retDataBuf==NULL){ + if (*retDataBuf == NULL){ PyErr_NoMemory(); return FALSE; } @@ -683,7 +683,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize) return FALSE; *retDataBuf = (BYTE *)PyMem_NEW(char, view.len); - if (*retDataBuf==NULL){ + if (*retDataBuf == NULL){ PyBuffer_Release(&view); PyErr_NoMemory(); return FALSE; |