commit | 6c74ee0c3a5e271f334a65a15d73a517a154a24b | [log] [tgz] |
---|---|---|
author | Cliff Smolinsky <cliffsmo@microsoft.com> | Mon May 20 17:40:03 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 20 17:40:03 2019 |
tree | 53d00fc1f6157e0b28b9623c85fc30619c1b61f0 | |
parent | 0b33c07a91491b22e819e78d8d5f7e038e4b6508 [diff] |
Add PinUser32() to wWinMain for Content_Shell.exe Calls to pin or load user32.dll cannot happen on the main thread loop because they are blocking calls. The test code always executes on the main thread loop, so if the test code hits anything that requires user32 then it will crash (with dchecks on). To avoid this, we simply call PinUser32() in wWinMain before we get to the main thread loop. This same thing is done in browser_tests_main.cc. Bug: 962559 Change-Id: I82b4e7a41117db77e2ff3a01314cb9e82c7b1b8f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1617911 Reviewed-by: Peter Beverloo <peter@chromium.org> Commit-Queue: Cliff Smolinsky <cliffsmo@microsoft.com> Cr-Commit-Position: refs/heads/master@{#661391}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .