in reply to Re^2: Win32::API and pointer of dword
in thread Win32::API and pointer of dword

len is will never be NULL pointer. It'll never be zero. If you want the ability to pass NULL, we'll have to do more work. Which of the following is true?

And then there's return ERROR; in a function of return type void...

Replies are listed 'Best First'.
Re^4: Win32::API and pointer of dword
by cbrauner (Novice) on Aug 18, 2009 at 15:31 UTC
    found it in c-code : check is against pointer and not against the value - third party dll ;) - thx

      So I guess it was the following unstated option: You misunderstood the purpose of the check. It isn't checking if the length is zero. It is checking if the pointer is NULL, for that would be a problem. Since we'll never pass NULL, the check will always be false, and that's a good thing.