Skip to content

Commit 2378950

Browse files
committed
Now the CCallback is really fixed!
1 parent 3d35071 commit 2378950

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/core/modules/memory/memory_callback.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,11 @@ int CCallback::GetPopSize()
134134

135135
int CCallback::GetArgumentOffset(int iIndex)
136136
{
137-
int offset = 4;
138-
for(int i=0; i <= iIndex; i++)
137+
int offset = 8;
138+
if (iIndex == 0)
139+
return offset;
140+
141+
for(int i=0; i <= iIndex - 1; i++)
139142
{
140143
offset += GetTypeSize(extract<Argument_t>(m_Args[i]));
141144
}

0 commit comments

Comments
 (0)