diff options
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;
}
|