[Bug 10525] HLSW 2 crashes at start

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Mar 22 04:40:36 CDT 2008


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





--- Comment #7 from Louis Lenders <xerox_xerox2000 at yahoo.co.uk>  2008-03-22 04:40:36 ---
A user submitted garbage test results into appdb, so it's still crashing. I had
another look at the crash, and it looks that this is the culprit:

0009:Ret  KERNEL32.GetLastError() retval=00000717

That resolves to ERROR_RESOURCE_LANG_NOT_FOUND. With a simple hack like below
the app starts fine, so this must be a bug somehow in FindResourceExW. Maybe
someone who knows a lot about resources could have a look.









Hack:

diff --git a/dlls/kernel32/resource.c b/dlls/kernel32/resource.c
index f49ea24..131e746 100644
--- a/dlls/kernel32/resource.c
+++ b/dlls/kernel32/resource.c
@@ -221,6 +221,7 @@ HRSRC WINAPI FindResourceA( HMODULE hModule, LPCSTR name,
LPCSTR type )
 HRSRC WINAPI FindResourceExW( HMODULE hModule, LPCWSTR type, LPCWSTR name,
WORD lang )
 {
     TRACE( "%p %s %s %04x\n", hModule, debugstr_w(type), debugstr_w(name),
lang );
+    lang=MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL);

     if (!hModule) hModule = GetModuleHandleW(0);
     else if (!HIWORD(hModule))


-- 
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