From b173a96237b1f1c02c642f3d4a57ecb507ebc664 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Sun, 26 Dec 2021 16:17:26 -0700 Subject: [PATCH] comctl32/tests: Use GetLocaleInfoA when the buffer size is in bytes (Coverity). Signed-off-by: Alex Henrie Signed-off-by: Alexandre Julliard --- 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 f26fb1bd3ca..affd21da825 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; }