FIX for ZwQueryObject hang on file objects that have FO_SYNCHRONOUS_IO set.
There is a "bug" in Win32 that hangs calls to ZwQueryObject and other functions
when the queried handle has this flag set, as the Syscall is waiting forever.
Ollydbg suffers from this bug as it reads certain handle informations after it
hits a breakpoint. This then leads to a freeze of the debugger.
This plugin tries to fix it by hooking the functions
that get used by olly, which can cause the lockup and let them process the
queries in a seperate thread with a timeout of 1sec. If the call hangs, an error
is returned to Olly and the debugger doesn't freeze anymore.