Module: wine Branch: master Commit: 6f9baca2563707ae9debfc70ea0157109a7418e7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f9baca2563707ae9debfc70ea...
Author: Rob Shearman robertshearman@gmail.com Date: Wed Jul 30 13:18:55 2008 +0100
oleaut32: Fix the loading of the parameter name for SLTG propget functions.
The parameter could have an offset of 0xffff/0xfffe, in which case the parameter name should be the name of the function, rather than NULL.
---
dlls/oleaut32/typelib.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index c569fb2..45c5e13 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -3308,6 +3308,9 @@ static void SLTG_DoFuncs(char *pBlk, char *pFirstItem, ITypeInfoImpl *pTI, if(paramName) { (*ppFuncDesc)->pParamDesc[param].Name = TLB_MultiByteToBSTR(paramName); + } else { + (*ppFuncDesc)->pParamDesc[param].Name = + SysAllocString((*ppFuncDesc)->Name); } }