#define ValidateReadPtr(p,cb) 0
I can’t think of a use case for this kind of macro,what about you?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I can only find the
ValidateReadPtr()macro in thewxdebug.hheader for the Windows Mobile SDK (even though MSDN indicates it’s part of the DirectShow APIs).In
wxdebug.hit’s defined as:I suspect that in your project it’s defined as
0for one or both of the following reasons:wxdebug.hheader isn’t available (ie., not using the Windows Mobile SDK)IsBadreadPtr()say, “Important This function is obsolete and should not be used. Despite its name, it does not guarantee that the pointer is valid or that the memory pointed to is safe to use. For more information, see Remarks…”. And Raymond Chen wrote an article about the problems withIsBadReadPtr(): IsBadXxxPtr should really be called CrashProgramRandomly