diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-13 20:19:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-13 20:19:46 +0300 |
commit | 054bb1949247445a29a68812579800904edf6a02 (patch) | |
tree | 6aecd3e738de818d45e703325b17f571baf02ee0 /plugins/MenuItemEx | |
parent | 7657cf3cd9f3ae33e29091a947d76234997ebfd9 (diff) |
MS_FILE_* services became useless since StdFile died
Diffstat (limited to 'plugins/MenuItemEx')
-rw-r--r-- | plugins/MenuItemEx/src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 1ba2c38e31..fdca3118e8 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -207,7 +207,7 @@ static void ShowPopup(const wchar_t *pwszText, MCONTACT hContact) BOOL DirectoryExists(MCONTACT hContact)
{
wchar_t path[MAX_PATH];
- CallService(MS_FILE_GETRECEIVEDFILESFOLDER, hContact, (LPARAM)&path);
+ File::GetReceivedFolder(hContact, path, _countof(path));
uint32_t attr = GetFileAttributesW(path);
return (attr != -1) && (attr & FILE_ATTRIBUTE_DIRECTORY);
}
@@ -542,7 +542,7 @@ static INT_PTR OpenIgnoreOptions(WPARAM, LPARAM) static INT_PTR onRecvFiles(WPARAM hContact, LPARAM)
{
wchar_t path[MAX_PATH];
- CallService(MS_FILE_GETRECEIVEDFILESFOLDER, hContact, (LPARAM)&path);
+ File::GetReceivedFolder(hContact, path, _countof(path));
ShellExecuteW(nullptr, L"open", path, nullptr, nullptr, SW_SHOW);
return 0;
}
|