https://bugs.winehq.org/show_bug.cgi?id=57830
Bug ID: 57830 Summary: StarCitizen fails to launch Product: Wine Version: 10.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: rawfox@freenet.de Distribution: ---
Created attachment 78038 --> https://bugs.winehq.org/attachment.cgi?id=78038 fix-off-by-one-mistake.patch
StarCitizen does not launch due to a mistake in the file dlls/wbemprox/builtin.c
if (++i > nb_allocated)
Netho (ngh) from Linux Users Group (#LUG) found it and quick hacked a diff, thanks you man ! He said, this will be true when `i` was 16. Due to C is 0 indexed it means it just wrote past the buffer, clobbering something critical. Changing it to >= does the trick.
if (++i >= nb_allocated) this made it work again.
Cheers, raw^^