Re: oleaut32: Added insufficient memory check to ITypelib2:GetDocumentation2
16 Aug
2006
16 Aug
'06
3:10 a.m.
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.
7062
Age (days ago)
7062
Last active (days ago)
0 comments
1 participants
participants (1)
-
Frank Richter