Qt: Add steam shortcuts

This commit is contained in:
Megamouse 2026-03-10 20:20:12 +01:00
parent 2c2ec6e109
commit 8b74ea8757
15 changed files with 1136 additions and 76 deletions

View file

@ -131,7 +131,7 @@ std::set<std::string> get_one_drive_paths()
do
{
path_buffer.resize(path_buffer.size() + MAX_PATH);
DWORD buffer_size = static_cast<DWORD>(path_buffer.size() - 1);
DWORD buffer_size = static_cast<DWORD>((path_buffer.size() - 1) * sizeof(wchar_t));
status = RegQueryValueExW(hkey, L"UserFolder", NULL, &type, reinterpret_cast<LPBYTE>(path_buffer.data()), &buffer_size);
}
while (status == ERROR_MORE_DATA);