pin user32 on startup
https://chromium-review.googlesource.com/c/chromium/src/+/1551709 Loading it later causes a blocking call where blocking calls aren't allowed.
This commit is contained in:
parent
03ee12d13e
commit
18d70e6e57
1 changed files with 7 additions and 0 deletions
|
@ -49,6 +49,10 @@
|
||||||
#include "atom/app/atom_main_delegate_mac.h"
|
#include "atom/app/atom_main_delegate_mac.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(OS_WIN)
|
||||||
|
#include "base/win/win_util.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace atom {
|
namespace atom {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -183,6 +187,9 @@ bool AtomMainDelegate::BasicStartupComplete(int* exit_code) {
|
||||||
// Disable the ActiveVerifier, which is used by Chrome to track possible
|
// Disable the ActiveVerifier, which is used by Chrome to track possible
|
||||||
// bugs, but no use in Electron.
|
// bugs, but no use in Electron.
|
||||||
base::win::DisableHandleVerifier();
|
base::win::DisableHandleVerifier();
|
||||||
|
|
||||||
|
if (IsBrowserProcess(command_line))
|
||||||
|
base::win::PinUser32();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
content_client_ = std::make_unique<AtomContentClient>();
|
content_client_ = std::make_unique<AtomContentClient>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue