From 054bb1949247445a29a68812579800904edf6a02 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Dec 2023 20:19:46 +0300 Subject: MS_FILE_* services became useless since StdFile died --- plugins/MenuItemEx/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MenuItemEx') 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; } -- cgit v1.2.3