From 48e1a72a23fa867caeefe31fce539cbf64d6ee99 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Thu, 1 Dec 2005 11:37:11 +0100 Subject: [PATCH] Don't truncate large integer constants. --- dlls/oleaut32/typelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 682cd732b39..03cc6abda6c 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -1532,7 +1532,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_I2(pVar) = offset & 0x3ffffff; + V_I4(pVar) = offset & 0x3ffffff; return; } MSFT_ReadLEWords(&(V_VT(pVar)), sizeof(VARTYPE), pcx,