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:
parent
c57acd99d2
commit
9931591d3a
1 changed files with 7 additions and 0 deletions
|
@ -1116,6 +1116,13 @@ void CallStruct(SystemProc *proc)
|
||||||
// Calculate the structure size
|
// Calculate the structure size
|
||||||
for (i = 1; i <= proc->ParamCount; i++)
|
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)
|
if (proc->Params[i].Option < 1)
|
||||||
structsize += proc->Params[i].Size * 4;
|
structsize += proc->Params[i].Size * 4;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue