https://bugs.winehq.org/show_bug.cgi?id=44055
--- Comment #22 from Zebediah Figura z.figura12@gmail.com --- (In reply to Gijs Vermeulen from comment #21)
Created attachment 68197 [details] test patch
Is something like the attached patch good enough?
The page for MSDN suggests the cutoff is Windows 8 (i.e. NT 6.2), not 8.1 (i.e. NT 6.3). If true, just changing the version in that patch wouldn't be enough, since supposedly the function should return TRUE if Windows 8 is in the manifest, FALSE if not.
To test this, you'd want to create a manifest, declare *only* windows 8 compatibility (i.e. no 8.1 or 10), and check if the function returns TRUE. If the documentation is accurate, it should. Unfortunately, it also means that the implementation needs to do a bit of nontrivial parsing, but at least it would look similar to 6719bf2e03.