mirror of
https://github.com/suyu-emu/Yucom.git
synced 2026-09-21 13:22:43 -07:00
The SteamAPI may return non-zero values even when a NULL pointer is passed in for the target path buffer. For example, GetAppInstallDir will still return the required size of the distination buffer. Since api_result is the length of the Windows path, it is not completely safe to return it directly, since the corresponding UNIX path may have more characters. Without access to the original Windows path, we cannot make a conversion to determine how many characters the UNIX path will have. So just resort to returning a safe upper bound value. CW-Bug-Id: #19606