[PATCH 1/2] ntdll: Support 64-bit Mac OS.

Alexandre Julliard julliard at winehq.org
Tue Feb 3 21:23:38 CST 2015

cdavis5x at gmail.com writes:

>> On Feb 3, 2015, at 4:07 AM, Alexandre Julliard <julliard at 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.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list