The value of a packed VARIANT can be up to 1L << 26 - 1.

This commit is contained in:
Huw Davies 2005-01-09 18:00:32 +00:00 committed by Alexandre Julliard
parent 634693c114
commit d070d8fb46
1 changed files with 1 additions and 1 deletions

View File

@ -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,