mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-06 15:05:47 +00:00
Qt: Add steam shortcuts
This commit is contained in:
parent
2c2ec6e109
commit
8b74ea8757
15 changed files with 1136 additions and 76 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue