summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2007-04-25 00:10:50 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2007-04-25 00:10:50 (GMT)
commit17b8e97e2e2c24322d45c33308212e0d6c32d934 (patch)
treeb29361f28ad72a27c5d235e75a6340ebf03209d4 /PC
parente133a95d1c6c6b28afe66dc0118282fe0d1073f1 (diff)
downloadcpython-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')
-rw-r--r--PC/_winreg.c2
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;