Commit 1a27fe6b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Mask out the upper 12 bits from the resourceid, just like win95 does.

parent 5cc04eb4
......@@ -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 );
......
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