quartz: Check allocation failure and clear memory in DSound
Renderer
Francois Gouget
fgouget at free.fr
Fri Mar 9 11:18:05 CST 2007
On Fri, 9 Mar 2007, Felix Nawothnig wrote:
> Detlef Riekenberg wrote:
> > > @@ -325,9 +328,15 @@ HRESULT DSoundRender_create(IUnknown * pUnkOuter,
> > > LPVOID * ppv)
> > > pDSoundRender->pClock = NULL;
> > > pDSoundRender->init = FALSE;
> > > pDSoundRender->started = FALSE;
> > ... there is no need to clear it again.
>
> However, note that NULL is not always all binary zero in memory. :)
Isn't it zero on all sane systems, i.e. all systems we care about and
even more?
--
Francois Gouget <fgouget at free.fr> http://fgouget.free.fr/
A particle is an irreducible representation of the Poincaré Group - Eugene Wigner
More information about the wine-devel
mailing list