diff options
author | Zackery Spytz <zspytz@gmail.com> | 2019-04-22 11:08:05 -0600 |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2019-04-22 10:08:05 -0700 |
commit | 34366b7f914eedbcc33aebe882098a2199ffaf82 (patch) | |
tree | 89ed527d97e09603dfe11b3f20a8b02fec695319 /PC/winreg.c | |
parent | bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687) (diff) | |
download | cpython-34366b7f914eedbcc33aebe882098a2199ffaf82.tar.gz cpython-34366b7f914eedbcc33aebe882098a2199ffaf82.tar.bz2 cpython-34366b7f914eedbcc33aebe882098a2199ffaf82.zip |
bpo-36672: Fix a compiler warning in winreg.SetValue() (GH-12882)
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 28b316ae2f4..5469fcba044 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -1614,7 +1614,7 @@ winreg_SetValue_impl(PyObject *module, HKEY key, const Py_UNICODE *sub_key, } Py_BEGIN_ALLOW_THREADS - rc = RegSetValueW(key, sub_key, REG_SZ, value, value_length+1); + rc = RegSetValueW(key, sub_key, REG_SZ, value, (DWORD)(value_length + 1)); Py_END_ALLOW_THREADS if (rc != ERROR_SUCCESS) return PyErr_SetFromWindowsErrWithFunction(rc, "RegSetValue"); |