quartz: Check allocation failure and clear memory in DSound Renderer

Felix Nawothnig flexo at holycrap.org
Fri Mar 9 08:55:41 CST 2007


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. :)



More information about the wine-patches mailing list