[PATCH] comctl32/tests: Use GetLocaleInfoA when the buffer size is in bytes (Coverity)
Alex Henrie
alexhenrie24 at gmail.com
Sun Dec 26 17:17:26 CST 2021
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
Alternatively, we could keep using GetLocaleInfoW here and divide
sizeof(reading_layout) by sizeof(WCHAR).
---
dlls/comctl32/tests/propsheet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/tests/propsheet.c b/dlls/comctl32/tests/propsheet.c
index b4696112500..4621d2c8c38 100644
--- a/dlls/comctl32/tests/propsheet.c
+++ b/dlls/comctl32/tests/propsheet.c
@@ -56,7 +56,7 @@ static HTHEME (WINAPI *pOpenThemeData)(HWND, LPCWSTR);
static void detect_locale(void)
{
DWORD reading_layout;
- rtl = GetLocaleInfoW(LOCALE_USER_DEFAULT, LOCALE_IREADINGLAYOUT | LOCALE_RETURN_NUMBER,
+ rtl = GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_IREADINGLAYOUT | LOCALE_RETURN_NUMBER,
(void *)&reading_layout, sizeof(reading_layout)) && reading_layout == 1;
}
--
2.34.1
More information about the wine-devel
mailing list