diff options
author | Brad King <brad.king@kitware.com> | 2019-08-21 19:03:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-22 17:06:15 (GMT) |
commit | a7aade84198343af9de79fda5c37560a2f9531a4 (patch) | |
tree | f9c68817db600effa2683d29b8c8c93ec7942b43 /Help/guide/tutorial/Step10/MathFunctions/mysqrt.cxx | |
parent | f6211f57d6b350dd8d701c19f80a0a458203e909 (diff) | |
download | CMake-a7aade84198343af9de79fda5c37560a2f9531a4.zip CMake-a7aade84198343af9de79fda5c37560a2f9531a4.tar.gz CMake-a7aade84198343af9de79fda5c37560a2f9531a4.tar.bz2 |
cmGlobalVisualStudioGenerator: Fix buffer sizes used with RegEnumKeyExW
In commit 0b9906c2fb (Windows: Use wide-character system APIs,
2013-12-04, v3.0.0-rc1~254^2) several buffer size computations had to be
updated to multiply by `sizeof(wchar_t)`, but for RegEnumKeyExW we were
already computing the correct number of characters with a division which
was accidentally converted to a multiplication. Use `cm::size` to
compute the number of characters in the buffer instead.
Issue: #19610
Diffstat (limited to 'Help/guide/tutorial/Step10/MathFunctions/mysqrt.cxx')
0 files changed, 0 insertions, 0 deletions