Pavel Roskin wrote:
Hello!
I see two solutions. One is to link wine executable against kernel32.dll.
I don't think you can do that. As kernel32.dll requires ntdll, you would create a real circular dependancy.
Another is to use the low-level function interlocked_cmpxchg_ptr(), which is what other code linked with "wine" does.