mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/win32-vd_agent
synced 2026-01-03 23:25:01 +00:00
vdagent: file-xfer: make user desktop the target directory
Before, the target directory was a public one (for all users), as file creation was not done with user privileges. Now that the file is created with user privileges, it's better to make the user desktop the target directory.
This commit is contained in:
parent
71193f6581
commit
066f614cee
@ -60,7 +60,7 @@ void FileXfer::handle_start(VDAgentFileXferStartMessage* start,
|
||||
return;
|
||||
}
|
||||
|
||||
if (FAILED(SHGetFolderPathA(NULL, CSIDL_COMMON_DESKTOPDIRECTORY | CSIDL_FLAG_CREATE, NULL,
|
||||
if (FAILED(SHGetFolderPathA(NULL, CSIDL_DESKTOPDIRECTORY | CSIDL_FLAG_CREATE, NULL,
|
||||
SHGFP_TYPE_CURRENT, file_path))) {
|
||||
vd_printf("failed getting desktop path");
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user