Skip to content

Load wine_get_version() dynamically.

This MR stems out from testing if an app may be detecting Wine presence by checking wine_get_version() entry point presence in ntdll.

I had wished that simply commenting out the entry point in ntdll.spec would be sufficient.

It isn't as 2 buitin DLLs directly link to wine_get_version(). This MR let them dynamically load the entry point's address.

For the record, there are three other DLLs/programs which make use of wine_get_version(), but using dynamic loading.

I can live without this MR being merged upstream, but looked a good idea:

  • to be consistent throughout the code
  • allow the simple comment in ntdll.spec to be possible.

Merge request reports

Loading