fix: improve dialog helper
- remove template for CoTaskMemDeleter due to previous confusion. - use std::remove_pointer_t instead of directly writting underlying type.
This commit is contained in:
@ -161,7 +161,7 @@ namespace YYCC::DialogHelper {
|
||||
|
||||
bool ExtractDisplayName(IShellItem* item, std::string& ret) {
|
||||
// fetch display name from IShellItem*
|
||||
WCHAR* _name;
|
||||
LPWSTR _name;
|
||||
HRESULT hr = item->GetDisplayName(SIGDN_FILESYSPATH, &_name);
|
||||
if (FAILED(hr)) return false;
|
||||
SmartLPWSTR display_name(_name);
|
||||
|
Reference in New Issue
Block a user