From: Paul Betts Date: Wed, 21 Oct 2015 00:36:05 +0000 (-0700) Subject: Allow WM_COPYDATA from all processes X-Git-Tag: v0.34.1~9^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=99c496471b665ac81e42e71603f14b87cfc6b637;p=electron.git Allow WM_COPYDATA from all processes --- diff --git a/chromium_src/chrome/browser/process_singleton_win.cc b/chromium_src/chrome/browser/process_singleton_win.cc index b1008c37..0007b713 100644 --- a/chromium_src/chrome/browser/process_singleton_win.cc +++ b/chromium_src/chrome/browser/process_singleton_win.cc @@ -293,6 +293,11 @@ bool ProcessSingleton::Create() { bool result = window_.CreateNamed( base::Bind(&ProcessLaunchNotification, notification_callback_), user_data_dir_.value()); + + // NB: Ensure that if the primary app gets started as elevated + // admin inadvertently, secondary windows running not as elevated + // will still be able to send messages + ::ChangeWindowMessageFilterEx(window_.hwnd(), WM_COPYDATA, MSGFLT_ALLOW, NULL); CHECK(result && window_.hwnd()); } }