mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-18 14:16:43 -06:00
* Core: Folders, fixed for MSC71 compiler...
git-svn-id: svn://ultimatepp.org/upp/trunk@2197 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
58b59adcef
commit
09fd991f4b
1 changed files with 2 additions and 2 deletions
|
|
@ -456,13 +456,13 @@ MY_DEFINE_KNOWN_FOLDER(MY_FOLDERID_Downloads, 0x374de290, 0x123f, 0x4565, 0x91,
|
|||
|
||||
String GetDownloadFolder()
|
||||
{
|
||||
static HRESULT (STDAPICALLTYPE * SHGetKnownFolderPath)(REFKNOWNFOLDERID rfid, DWORD dwFlags, HANDLE hToken, PWSTR *ppszPath);
|
||||
static HRESULT (STDAPICALLTYPE * SHGetKnownFolderPath)(const void *rfid, DWORD dwFlags, HANDLE hToken, PWSTR *ppszPath);
|
||||
ONCELOCK {
|
||||
DllFn(SHGetKnownFolderPath, "shell32.dll", "SHGetKnownFolderPath");
|
||||
}
|
||||
if(SHGetKnownFolderPath) {
|
||||
PWSTR path = NULL;
|
||||
if(SHGetKnownFolderPath(MY_FOLDERID_Downloads, 0, NULL, &path) == S_OK && path) {
|
||||
if(SHGetKnownFolderPath(&MY_FOLDERID_Downloads, 0, NULL, &path) == S_OK && path) {
|
||||
String s = FromUnicodeBuffer(path, wstrlen(path));
|
||||
CoTaskMemFree(path);
|
||||
return s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue