maxpath *10

This commit is contained in:
Detanup01 2024-11-21 13:58:52 +01:00 committed by GitHub
parent 46b50ad61f
commit 94a7e62ecb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -469,7 +469,7 @@ std::string Local_Storage::get_user_appdata_path()
{ {
std::string user_appdata_path("SAVE"); std::string user_appdata_path("SAVE");
#if defined(STEAM_WIN32) #if defined(STEAM_WIN32)
WCHAR szPath[MAX_PATH] = {}; WCHAR szPath[MAX_PATH * 10] = {};
HRESULT hr = SHGetFolderPathW(NULL, CSIDL_APPDATA, NULL, 0, szPath); HRESULT hr = SHGetFolderPathW(NULL, CSIDL_APPDATA, NULL, 0, szPath);