Skip to content

Commit ba63783

Browse files
authored
[windows][bug] fix the crash bug on windows targeting c++20 (#47)
1 parent 74b558e commit ba63783

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windows/tray_manager_plugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ std::optional<LRESULT> TrayManagerPlugin::HandleWindowProc(HWND hWnd,
187187
case WM_LBUTTONUP:
188188
channel->InvokeMethod(
189189
"onTrayIconMouseDown",
190-
std::make_unique<flutter::EncodableValue>(nullptr));
190+
std::make_unique<flutter::EncodableValue>());
191191
break;
192192
case WM_RBUTTONUP:
193193
channel->InvokeMethod(
194194
"onTrayIconRightMouseDown",
195-
std::make_unique<flutter::EncodableValue>(nullptr));
195+
std::make_unique<flutter::EncodableValue>());
196196
break;
197197
default:
198198
return DefWindowProc(hWnd, message, wParam, lParam);

0 commit comments

Comments
 (0)