[Bug 41377] Windows 10 DISM failed to find the resources

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Feb 3 13:45:38 CST 2017


https://bugs.winehq.org/show_bug.cgi?id=41377

Louis Lenders <xerox_xerox2000 at yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xerox_xerox2000 at yahoo.co.uk
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #2 from Louis Lenders <xerox_xerox2000 at yahoo.co.uk> ---
Confirming. I too get: Failed to find the resources for this executable.

My guess is that the problem is in SetThreadUILanguage
It gets a bit further with the hack at the end***
(MSDN says If the language identifier is 0, the function always succeeds and
returns the identifier of the language that best supports the Windows console.)




As said, it gets abit further then and it looks as if it then chokes in:

fixme:ver:GetFileVersionInfoExW stub: 3 L"C:\\Program Files\\Windows
Kits\\10\\Assessment and Deployment Kit\\Deployment
Tools\\x86\\DISM\\DismCore.dll" 3405192 2097152 0x550020

Error: 120

An error occurred while loading DISM. The DISM tool may be corrupt. 
Try reinstalling DISM.

Couldnt get any further.

***:

diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index ca59751..2712667 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -2749,7 +2749,7 @@ BOOL WINAPI SetThreadLocale( LCID lcid )
 LANGID WINAPI SetThreadUILanguage( LANGID langid )
 {
     TRACE("(0x%04x) stub - returning success\n", langid);
-    return langid;
+    if(langid) return langid; else return 1033;
 }


/******************************************************************************

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