Commit 0de689f4 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

user32: Automatically load the module implementing redirected class.

parent bf152cb0
......@@ -336,6 +336,7 @@ const WCHAR *CLASS_GetVersionedName( const WCHAR *name, UINT *basename_offset )
ULONG module_len;
ULONG module_offset;
} *wndclass;
const WCHAR *module;
if (basename_offset)
*basename_offset = 0;
......@@ -354,6 +355,10 @@ const WCHAR *CLASS_GetVersionedName( const WCHAR *name, UINT *basename_offset )
if (basename_offset)
*basename_offset = wndclass->name_len / sizeof(WCHAR) - strlenW(name);
module = (const WCHAR *)((BYTE *)data.lpSectionBase + wndclass->module_offset);
if (!GetModuleHandleW( module ))
LoadLibraryW( module );
return (const WCHAR *)((BYTE *)wndclass + wndclass->name_offset);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment