summaryrefslogtreecommitdiffstats
path: root/PC/winreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'PC/winreg.c')
-rw-r--r--PC/winreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winreg.c b/PC/winreg.c
index 1536e17..7d1d816 100644
--- a/PC/winreg.c
+++ b/PC/winreg.c
@@ -896,7 +896,7 @@ Reg2Py(BYTE *retDataBuf, DWORD retDataSize, DWORD typ)
obData = Py_None;
}
else
- obData = PyByteArray_FromStringAndSize(
+ obData = PyBytes_FromStringAndSize(
(char *)retDataBuf, retDataSize);
break;
}