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

found it in c-code : check is against pointer and not against the value - third party dll ;) - thx

Replies are listed 'Best First'.
Re^5: Win32::API and pointer of dword
by ikegami (Patriarch) on Aug 18, 2009 at 16:30 UTC

    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.