diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-01 12:56:12 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-01 12:56:12 +0300 |
commit | 5e1234ce647a66915353c5c838363b1b67ebfac0 (patch) | |
tree | 3d4f134f9f0a901163ddfc35e5c2ffacc0db0693 /plugins/MenuItemEx | |
parent | ccd47813d774540317912de65e0ffb4300dbfbb9 (diff) |
unused ANSI service MS_FILE_GETRECEIVEDFILESFOLDER removed
Diffstat (limited to 'plugins/MenuItemEx')
-rw-r--r-- | plugins/MenuItemEx/src/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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;
}
|