Skip to content
Snippets Groups Projects
Commit b173a962 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard
Browse files

comctl32/tests: Use GetLocaleInfoA when the buffer size is in bytes (Coverity).

parent 97d5aaea
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment