https://bugs.winehq.org/show_bug.cgi?id=51465
--- Comment #17 from Zebediah Figura z.figura12@gmail.com --- (In reply to algebro from comment #16)
Would you have any guidance on how to fix it in wine? I'd be happy to try and contribute a patch, although when I was looking through the source code I was having trouble figuring out what exactly I would need to do without breaking everything. No worries if you'd rather handle it internally though!
Something like the following (untested!) diff should do it:
diff --git a/tools/makedep.c b/tools/makedep.c index db076d0c057..9c21ca40d73 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -2292,7 +2292,7 @@ static void add_crt_import( const struct makefile *make, struct strarray *import } else { - crt_dll = !make->testdll && !make->staticlib ? "ucrtbase" : "msvcrt"; + crt_dll = "msvcrt"; strarray_add( imports, crt_dll ); } }
Then it'd be a matter of trying to compile it, fixing any instances where we rely on newer CRT features, and then doing the same thing with the tests.