Alex Henrie : comctl32/tests: Use GetLocaleInfoA when the buffer size is in bytes (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Dec 28 15:48:27 CST 2021
Module: wine
Branch: master
Commit: b173a96237b1f1c02c642f3d4a57ecb507ebc664
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b173a96237b1f1c02c642f3d4a57ecb507ebc664
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Sun Dec 26 16:17:26 2021 -0700
comctl32/tests: Use GetLocaleInfoA when the buffer size is in bytes (Coverity).
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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;
}
More information about the wine-cvs
mailing list