Vincent Povirk <madewokherd at gmail.com> wrote: > I think you might want (!(flags & > (ImageLockModeRead|ImageLockModeWrite))), in case someone passes > ImageLockModeUserInputBuf This needs an additional test of course, and that should be a separate patch. -- Dmitry.