mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:27:35 +00:00
Mask out the upper 12 bits from the resourceid, just like win95 does.
This commit is contained in:
parent
5cc04eb4b3
commit
1a27fe6b1a
1 changed files with 3 additions and 1 deletions
|
@ -856,7 +856,9 @@ INT WINAPI LoadStringW( HINSTANCE instance, UINT resource_id,
|
|||
TRACE(resource, "instance = %04x, id = %04x, buffer = %08x, "
|
||||
"length = %d\n", instance, (int)resource_id, (int) buffer, buflen);
|
||||
|
||||
hrsrc = FindResourceW( instance, (LPCWSTR)((resource_id>>4)+1),
|
||||
/* Use bits 4 - 19 (incremented by 1) as resourceid, mask out
|
||||
* 20 - 31. */
|
||||
hrsrc = FindResourceW( instance, (LPCWSTR)(((resource_id>>4)&0xffff)+1),
|
||||
RT_STRINGW );
|
||||
if (!hrsrc) return 0;
|
||||
hmem = LoadResource( instance, hrsrc );
|
||||
|
|
Loading…
Reference in a new issue