From ba637838a8cda8563c029e0e015227ae383e4b7e Mon Sep 17 00:00:00 2001 From: shifu Date: Thu, 26 Sep 2024 08:58:11 +0800 Subject: [PATCH] [windows][bug] fix the crash bug on windows targeting c++20 (#47) --- windows/tray_manager_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/tray_manager_plugin.cpp b/windows/tray_manager_plugin.cpp index b1978b9..05e928d 100644 --- a/windows/tray_manager_plugin.cpp +++ b/windows/tray_manager_plugin.cpp @@ -187,12 +187,12 @@ std::optional TrayManagerPlugin::HandleWindowProc(HWND hWnd, case WM_LBUTTONUP: channel->InvokeMethod( "onTrayIconMouseDown", - std::make_unique(nullptr)); + std::make_unique()); break; case WM_RBUTTONUP: channel->InvokeMethod( "onTrayIconRightMouseDown", - std::make_unique(nullptr)); + std::make_unique()); break; default: return DefWindowProc(hWnd, message, wParam, lParam);