diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2007-04-25 00:10:50 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2007-04-25 00:10:50 (GMT) |
commit | 17b8e97e2e2c24322d45c33308212e0d6c32d934 (patch) | |
tree | b29361f28ad72a27c5d235e75a6340ebf03209d4 /PC/_winreg.c | |
parent | e133a95d1c6c6b28afe66dc0118282fe0d1073f1 (diff) | |
download | cpython-17b8e97e2e2c24322d45c33308212e0d6c32d934.zip cpython-17b8e97e2e2c24322d45c33308212e0d6c32d934.tar.gz cpython-17b8e97e2e2c24322d45c33308212e0d6c32d934.tar.bz2 |
Merge change 54909 from release25-maint: Fix several minor issues discovered using code analysis in VisualStudio 2005 Team Edition
Diffstat (limited to 'PC/_winreg.c')
-rw-r--r-- | PC/_winreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/_winreg.c b/PC/_winreg.c index b39411a..782761b 100644 --- a/PC/_winreg.c +++ b/PC/_winreg.c @@ -699,7 +699,7 @@ Py2Reg(PyObject *value, DWORD typ, BYTE **retDataBuf, DWORD *retDataSize) case REG_DWORD: if (value != Py_None && !PyInt_Check(value)) return FALSE; - *retDataBuf = (BYTE *)PyMem_NEW(DWORD, sizeof(DWORD)); + *retDataBuf = (BYTE *)PyMem_NEW(DWORD, 1); if (*retDataBuf==NULL){ PyErr_NoMemory(); return FALSE; |