[Bug 35176] MSVC 2012 C compiler 'cl.exe' fails/crashes (TLS not correctly initialised for explicitly-loaded DLLs)

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Dec 22 07:38:42 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=35176

--- Comment #5 from Richard Hayden <r.hayden at gmail.com> ---
Hi Martin, this is basically what I did.

However, I'd check the status coming back from load_dll; I'd hazard it's
failing to load the DLL or some of its dependencies (not sure why
tls_module_count > 0 though..). I think your problem here is that the other
DLLs that c2.dll pulls in (e.g. mspdb110.dll) are not being found -- I don't
think load_path = NtCurrentTeb()->Peb->ProcessParameters->DllPath.Buffer as
passed to fixup_imports is sufficient here, you need to include
%MSVSPATH%/Common7/IDE and maybe c:/windows/system32 too (semicolon delimited).
At least that's what I had to do; I'm not sure where what is in your %PATH%
comes into it, but I had to included these locations explicitly to get it work
IIRC.

Hopefully I can post a patch for my exact workaround early next week.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list