From 5e1234ce647a66915353c5c838363b1b67ebfac0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 1 Nov 2023 12:56:12 +0300 Subject: unused ANSI service MS_FILE_GETRECEIVEDFILESFOLDER removed --- plugins/MenuItemEx/src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/MenuItemEx') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 3684defb91..0a76189564 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -206,10 +206,10 @@ static void ShowPopup(const wchar_t *pwszText, MCONTACT hContact) BOOL DirectoryExists(MCONTACT hContact) { - char path[MAX_PATH]; + wchar_t path[MAX_PATH]; CallService(MS_FILE_GETRECEIVEDFILESFOLDER, hContact, (LPARAM)&path); - uint32_t attr = GetFileAttributesA(path); - return (attr != -1) && (attr&FILE_ATTRIBUTE_DIRECTORY); + uint32_t attr = GetFileAttributesW(path); + return (attr != -1) && (attr & FILE_ATTRIBUTE_DIRECTORY); } BOOL isMetaContact(MCONTACT hContact) @@ -543,9 +543,9 @@ static INT_PTR OpenIgnoreOptions(WPARAM, LPARAM) static INT_PTR onRecvFiles(WPARAM hContact, LPARAM) { - char path[MAX_PATH]; + wchar_t path[MAX_PATH]; CallService(MS_FILE_GETRECEIVEDFILESFOLDER, hContact, (LPARAM)&path); - ShellExecuteA(nullptr, "open", path, nullptr, nullptr, SW_SHOW); + ShellExecuteW(nullptr, L"open", path, nullptr, nullptr, SW_SHOW); return 0; } -- cgit v1.2.3