Commit d66b73666da90517e9c358937d219d7f281d1052

Ryan C. Gordon 2020-05-20T16:15:14

locale: Patched to compile on Windows Phone.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/locale/winrt/SDL_syslocale.c b/src/locale/winrt/SDL_syslocale.c
index e7e8b50..f6c612f 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