Skip to content

Commit

Permalink
[windows][bug] fix the crash bug on windows targeting c++20 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooshifu authored Sep 26, 2024
1 parent 74b558e commit ba63783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions windows/tray_manager_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ std::optional<LRESULT> TrayManagerPlugin::HandleWindowProc(HWND hWnd,
case WM_LBUTTONUP:
channel->InvokeMethod(
"onTrayIconMouseDown",
std::make_unique<flutter::EncodableValue>(nullptr));
std::make_unique<flutter::EncodableValue>());
break;
case WM_RBUTTONUP:
channel->InvokeMethod(
"onTrayIconRightMouseDown",
std::make_unique<flutter::EncodableValue>(nullptr));
std::make_unique<flutter::EncodableValue>());
break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
Expand Down

0 comments on commit ba63783

Please sign in to comment.