On Wed, Feb 1, 2012 at 12:14 AM, Daniel Verkamp <[email protected]> wrote: > +int av_page_protect(void *ptr, size_t size, int prot) > +{ > + DWORD oldprotect, newprotect = > + prot & AV_PROT_WRITE | AV_PROT_EXEC == > + AV_PROT_WRITE | AV_PROT_EXEC ? PAGE_EXECUTE_READWRITE : > + prot & AV_PROT_READ | AV_PROT_EXEC == > + AV_PROT_READ | AV_PROT_EXEC ? PAGE_EXECUTE_READ : > + prot & AV_PROT_EXEC ? PAGE_EXECUTE : > + prot & AV_PROT_WRITE ? PAGE_READWRITE : > + prot & AV_PROT_READ ? PAGE_READONLY : > + PAGE_NOACCESS;
Got a bit overzealous with parentheses removal here, sending a fixed version... _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
