Fix C4229

Move calling convention modifier for icon callback lambda in pfd, MSVC wasn't quite happy with this.
This commit is contained in:
OPNA2608 2022-04-09 11:23:19 +02:00
parent 16ad29ae7a
commit 194ba95633
1 changed files with 1 additions and 1 deletions

View File

@ -1383,7 +1383,7 @@ inline notify::notify(std::string const &title,
/* case icon::info: */ default: nid->dwInfoFlags = NIIF_INFO; break;
}
ENUMRESNAMEPROC icon_enum_callback = [](HMODULE, LPCTSTR, LPTSTR lpName, LONG_PTR lParam) -> BOOL WINAPI
ENUMRESNAMEPROC icon_enum_callback = [](HMODULE, LPCTSTR, LPTSTR lpName, LONG_PTR lParam) WINAPI -> BOOL
{
((NOTIFYICONDATAW *)lParam)->hIcon = ::LoadIcon(GetModuleHandle(nullptr), lpName);
return false;