Emulate g as &g16 in *() struct syntax

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6210 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2011-12-13 21:20:56 +00:00
parent c57acd99d2
commit 9931591d3a

View file

@ -1116,6 +1116,13 @@ void CallStruct(SystemProc *proc)
// Calculate the structure size
for (i = 1; i <= proc->ParamCount; i++)
{
// Emulate g as &g16
// (Changing ByteSizeByType would break compatibility with '*(&g16,i)i.s')
if (PAT_GUID==proc->Params[i].Type && 0==proc->Params[i].Option)
{
proc->Params[i].Option = 1 + 16;
}
if (proc->Params[i].Option < 1)
structsize += proc->Params[i].Size * 4;
else