advapi32/tests: Fix the RegEnumValueA() tests in UTF-8 locales.
commit95f2cc0f15b1dde0318e75e2a7f21957fa76af55
authorFrancois Gouget <fgouget@codeweavers.com>
Fri, 3 Mar 2023 15:23:07 +0000 (3 16:23 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 6 Mar 2023 10:03:13 +0000 (6 11:03 +0100)
tree8e1dec9df845a68b6f0868e766dc39c6811da5a3
parente796002ee61bf5dfb2718e8f4fb8fa928ccdc236
advapi32/tests: Fix the RegEnumValueA() tests in UTF-8 locales.

On Windows RegEnumValueA() is buggy such that when the value name
buffer is too small, it may way overestimate the required data buffer
size, sometimes returning more than the sufficiently large buffer it was
provided, in which case that buffer is untouched and thus not
NUL-terminated.
So modify the tests to accept this broken result and avoid checking
out-of-bounds data.

Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=53172
dlls/advapi32/tests/registry.c