cdavis5x@gmail.com writes:
On Feb 3, 2015, at 4:07 AM, Alexandre Julliard julliard@winehq.org wrote: That's not better than exporting NtCurrentTeb.
Are you sure? The NtCurrentTeb() function isn’t exported from x64 ntdll. If we export it from ours, then we have to export it on every x86-64 platform, because AFAICT there’s no way to say “Only export this function on Mac OS x86-64”.
Like I explained in the other thread, I’m just afraid that some program out there depends on NtCurrentTeb() not being exported from ntdll on x86-64. (Then again, if it depends on that, it probably depends on the TEB being accessible through %gs...)
If you find an app like that, we can investigate other solutions then. Adding extra exports may just as well break apps too.