[Bug 50404] Sims 4 crashes on startup with builtin msvcrt

WineHQ Bugzilla wine-bugs at winehq.org
Mon Jan 11 10:50:39 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=50404

--- Comment #16 from Piotr Caban <piotr.caban at gmail.com> ---
The problems I'm seeing in the logs are not related to the commit identified by
regression test. I also don't see why using native msvcr120 affects the bug.

Sims 4 process is started with CreateProcess call with bInheritHandles==FALSE
and CREATE_NEW_CONSOLE flag. I don't know what's the content of STARTUPINFO
from the log. I've tested it with gui application and zeroed startup info.
After that, on Windows, GetStdHandle returns NULL for all standard handles. On
wine the same values as in parent process are returned but the handles are
invalid.

In your logs GetStdHandle(STD_ERROR_HANDLE) returns 0x10 (this is copied from
parent process). 0x10 happens to be used as current directory handle. Because
of that it passes msvcrt handle validation and is used when writing to stderr.
Later it errors on all write operations.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list