sdl2-compat: fixed SDL_WinRTGetFSPathUNICODE()

From 24066f7fb52eb4828f059dbac1b6f21370995b15 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 23 Apr 2024 20:22:10 +0300
Subject: [PATCH] fixed SDL_WinRTGetFSPathUNICODE()

---
 src/sdl2_compat.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index e929321..7936ef1 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -8232,15 +8232,15 @@ SDL_WinRTGetFSPathUNICODE(int SDL_WinRT_Path pathType)
 {
     wchar_t *wstr = NULL;
 
-    if (((int) a) >= SDL_arraysize(winrt_getfspath_cached_strings)) {  // in case something new is added in SDL3...
-        SDL3_SetError("Unsupported SDL_WinRT_Path %d", (int) a);
+    if ((int)pathType >= (int)SDL_arraysize(winrt_getfspath_cached_strings)) {  // in case something new is added in SDL3...
+        SDL3_SetError("Unsupported SDL_WinRT_Path %d", (int) pathType);
     } else {
-        wstr = winrt_getfspath_cached_strings[a];
+        wstr = winrt_getfspath_cached_strings[pathType];
         if (!wstr) {
-            const char *utf8 = SDL3_WinRTGetFSPath(a);
+            const char *utf8 = SDL3_WinRTGetFSPath(pathType);
             if (utf8) {
-                wstr = (wchar_t *) SDL_iconv_string("UTF-16LE", "UTF-8", (const char *)(utf8), SDL_strlen(utf8) + 1);
-                winrt_getfspath_cached_strings[a] = wstr;
+                wstr = (wchar_t *) SDL3_iconv_string("UTF-16LE", "UTF-8", (const char *)(utf8), SDL3_strlen(utf8) + 1);
+                winrt_getfspath_cached_strings[pathType] = wstr;
             }
         }
     }