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

Bug: 962559
Change-Id: I82b4e7a41117db77e2ff3a01314cb9e82c7b1b8f
Reviewed-by: Peter Beverloo <>
Commit-Queue: Cliff Smolinsky <>
Cr-Commit-Position: refs/heads/master@{#661391}
1 file changed