diff --git a/src/locale/winrt/SDL_syslocale.c b/src/locale/winrt/SDL_syslocale.c index e7e8b50dd..f6c612f53 100644 --- a/src/locale/winrt/SDL_syslocale.c +++ b/src/locale/winrt/SDL_syslocale.c @@ -35,7 +35,7 @@ SDL_SYS_GetPreferredLocales(char *buf, size_t buflen) /* !!! FIXME: do we not have GetUserPreferredUILanguages on WinPhone or UWP? */ # if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP - ret = GetLocaleInfoEx(LOCALE_NAME_SYSTEM_DEFAULT, LOCALE_SNAME, wbuffer, SDL_arraylen(wbuffer)); + ret = GetLocaleInfoEx(LOCALE_NAME_SYSTEM_DEFAULT, LOCALE_SNAME, wbuffer, SDL_arraysize(wbuffer)); # else ret = GetSystemDefaultLocaleName(wbuffer, SDL_arraysize(wbuffer)); # endif