Weird thing with lcid of library is that if sublang is neutral then we

return the primary lang else we return 0.
This commit is contained in:
Huw D M Davies 2002-01-29 17:05:11 +00:00 committed by Alexandre Julliard
parent 63ba55b00c
commit eb16e1b055
1 changed files with 8 additions and 1 deletions

View File

@ -2009,7 +2009,14 @@ static ITypeLib2* ITypeLib2_Constructor_MSFT(LPVOID pLib, DWORD dwTLBLength)
/* now fill our internal data */
/* TLIBATTR fields */
MSFT_ReadGuid(&pTypeLibImpl->LibAttr.guid, tlbHeader.posguid, &cx);
pTypeLibImpl->LibAttr.lcid = tlbHeader.lcid;
/* pTypeLibImpl->LibAttr.lcid = tlbHeader.lcid;*/
/* Windows seems to have zero here, is this correct? */
if(SUBLANGID(tlbHeader.lcid) == SUBLANG_NEUTRAL)
pTypeLibImpl->LibAttr.lcid = PRIMARYLANGID(tlbHeader.lcid);
else
pTypeLibImpl->LibAttr.lcid = 0;
pTypeLibImpl->LibAttr.syskind = tlbHeader.varflags & 0x0f; /* check the mask */
pTypeLibImpl->LibAttr.wMajorVerNum = LOWORD(tlbHeader.version);
pTypeLibImpl->LibAttr.wMinorVerNum = HIWORD(tlbHeader.version);