http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #7 from michael bishop cleverca22@gmail.com 2012-06-24 05:41:15 CDT --- not sure why its different now, but DllMain does run cleanly, and then it gives a new error
wine: Call from 0x7b83ba92 to unimplemented function msvcp90.dll.??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z, aborting Unhandled exception: unimplemented function msvcp90.dll.??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z called in 32-bit code (0x7b83ba92).
i did see some references to the code trying to print to std::err when LoadLibraryW returned null, (stderr was an invalid pointer), but it seems to still be doing it when LoadLibraryW suceeds
i'll try what you said