From 19f3e9197854f4bfbd3cf63bcead19439275f926 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Wed, 28 Feb 2024 02:50:59 +0500 Subject: [PATCH] Prevent crash on 64-bit archs. --- dlls/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/util.cpp b/dlls/util.cpp index ac6e28f8..9834aa1f 100644 --- a/dlls/util.cpp +++ b/dlls/util.cpp @@ -2217,7 +2217,7 @@ int CRestore::ReadField( void *pBaseData, TYPEDESCRIPTION *pFields, int fieldCou break; case FIELD_EHANDLE: // Input and Output sizes are different! - pInputData = (char*)pData + j * gSizes[pTest->fieldType]; + pInputData = (char*)pData + j * gInputSizes[pTest->fieldType]; entityIndex = *(int *)pInputData; pent = EntityFromIndex( entityIndex ); if( pent )