"Joshua Thielen" <thielen at netprince.net> wrote: > - if ((wm = MODULE32_LookupHMODULE( hModule ))) > + if(!hModule && !(NtCurrentTeb()->tibflags &= TEBF_WIN32)) { ^^ Apparently '&=' above must be replaced by simple '&' -- Dmitry.