comctl32/tests: Use GetLocaleInfoA when the buffer size is in bytes (Coverity).
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
97d5aaeaa7
commit
b173a96237
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue