The value of a packed VARIANT can be up to 1L << 26 - 1.
This commit is contained in:
parent
634693c114
commit
d070d8fb46
|
@ -1516,7 +1516,7 @@ static void MSFT_ReadValue( VARIANT * pVar, int offset, TLBContext *pcx )
|
|||
|
||||
if(offset <0) { /* data are packed in here */
|
||||
V_VT(pVar) = (offset & 0x7c000000 )>> 26;
|
||||
V_UNION(pVar, iVal) = offset & 0xffff;
|
||||
V_UNION(pVar, iVal) = offset & 0x3ffffff;
|
||||
return;
|
||||
}
|
||||
MSFT_ReadLEWords(&(V_VT(pVar)), sizeof(VARTYPE), pcx,
|
||||
|
|
Loading…
Reference in New Issue