oleaut32: Added insufficient memory check to
ITypelib2:GetDocumentation2
Frank Richter
frank.richter at gmail.com
Tue Aug 15 22:10:10 CDT 2006
On 16.08.2006 04:23, Benjamin Arai wrote:
> if(pbstrHelpString)
> + {
> *pbstrHelpString=SysAllocString(This->DocString);
> + if(!*pbstrHelpString)
> + return STG_E_INSUFFICIENTMEMORY;
> + }
> if(pdwHelpStringContext)
> *pdwHelpStringContext=This->dwHelpContext;
> if(pbstrHelpStringDll)
> + {
> *pbstrHelpStringDll=SysAllocString(This->HelpStringDll);
> + if(!pbstrHelpStringDll)
> + return STG_E_INSUFFICIENTMEMORY;
> + }
Hm, shouldn't pbstrHelpString be freed in case the 2nd allocation fails?
-f.r.
More information about the wine-devel
mailing list