From 69181ad2f0ab780a3d3b937a369844d383ae9c1e Mon Sep 17 00:00:00 2001 From: kilokki <199999545+kilokki@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:09:44 -0800 Subject: [PATCH] use correct string width in swprintf() --- Windows_Libs/Dev/Storage/STO_DLC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows_Libs/Dev/Storage/STO_DLC.cpp b/Windows_Libs/Dev/Storage/STO_DLC.cpp index 5a72d51..6f829e7 100644 --- a/Windows_Libs/Dev/Storage/STO_DLC.cpp +++ b/Windows_Libs/Dev/Storage/STO_DLC.cpp @@ -108,7 +108,7 @@ C4JStorage::EDLCStatus CDLC::GetInstalledDLC(int iPad, int (*Func)(LPVOID, int, sprintf(data.szFileName, "Windows64Media/DLC/%s", hFind.cFileName); } - swprintf(data.szDisplayName, 256, L"%s", hFind.cFileName); + swprintf(data.szDisplayName, 256, L"%S", hFind.cFileName); int displayNameLen = wcslen(data.szDisplayName); data.DeviceID = 0;