[Bug 25243] Microsoft Viva Pinata fails on startup (Wine-Gecko "SetThreadName" MSVC exception 0x406d1388 breaks SafeDisc debugger)
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Apr 21 07:52:23 CDT 2012
http://bugs.winehq.org/show_bug.cgi?id=25243
--- Comment #22 from Anastasius Focht <focht at gmx.net> 2012-04-21 07:52:23 CDT ---
Hello,
this is the problematic part, causing SafeDisc protected apps that load Gecko
engine through mshtml to fail:
Wine-gecko source:
http://wine.git.sourceforge.net/git/gitweb.cgi?p=wine/wine-gecko;a=blob;f=ipc/chromium/src/base/platform_thread_win.cc;hb=6ac5344aeb4742f736896e2d1a83764ddfa970af#l47
--- snip ---
48 void PlatformThread::SetName(const char* name) {
49 // The debugger needs to be around to catch the name in the exception.
If
50 // there isn't a debugger, we are just needlessly throwing an exception.
51 if (!::IsDebuggerPresent())
52 return;
53
54 THREADNAME_INFO info;
55 info.dwType = 0x1000;
56 info.szName = name;
57 info.dwThreadID = CurrentId();
58 info.dwFlags = 0;
59
60 MOZ_SEH_TRY {
61 RaiseException(kVCThreadNameException, 0, sizeof(info)/sizeof(DWORD),
62 reinterpret_cast<DWORD_PTR*>(&info));
63 } MOZ_SEH_EXCEPT(EXCEPTION_CONTINUE_EXECUTION) {
64 }
65 }
--- snip ---
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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