diff --git a/compiler/ncal.pas b/compiler/ncal.pas index dbcc07b719..b67e8ded66 100644 --- a/compiler/ncal.pas +++ b/compiler/ncal.pas @@ -383,8 +383,11 @@ implementation calldescnode:=cdataconstnode.create; if dispintfinvoke then + begin calldescnode.append(dispid,sizeof(dispid)); - + // add dymmy restype byte which is not used by fpc + calldescnode.append(dispid,sizeof(byte)); + end; { build up parameters and description } para:=tcallparanode(parametersnode); currargpos:=0;