Re: quartz: Check allocation failure and clear memoryinDSound Renderer

2007-03-09 Thread Alexandre Julliard
"Dmitry Timoshkov" <[EMAIL PROTECTED]> writes: > Have you read it at all? NULL is guaranteed to be 0 in all contexts. > > If some C++ compiler decides to generate not 0 data while converting/casting > a NULL pointer, it should be declared broken. The point is that (void*)0 isn't guaranteed to be

Re: quartz: Check allocation failure and clear memoryinDSound Renderer

2007-03-09 Thread Dmitry Timoshkov
"Felix Nawothnig" <[EMAIL PROTECTED]> wrote: Dmitry Timoshkov wrote: However, note that NULL is not always all binary zero in memory. :) I don't believe it's true since NULL is defined as (void *)0. Actually it may aswell be just 0 in C. Just in C++ it's defined to be (void *)0. But even wi