http://bugs.winehq.org/show_bug.cgi?id=17697
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com 2010-01-14 16:09:56 --- (In reply to comment #6)
(In reply to comment #5)
I saw that call in the trace, but I cannot figure out where the call to that funtion is coming from. I searched all our source files and it is not referenced anywhere.
Most likely it's coming from mfc runtime module.
When I did an internet search, I found that funtion is located in atl.dll. I tried adding atl.dll to the .wine windows/system32 directory, but it did not help. Any ideas?
You should set it to native using winecfg.
P.S. This function is trivial to implement on top of W version. You could checkout Wine git tree and look at dlls/atl path.