dlls/user/hook.c HOOK_CallHooks() help
Alexandre Julliard
julliard at winehq.org
Wed Nov 8 14:57:35 CST 2006
"Phil Lodwick" <Phil.Lodwick at EFI.COM> writes:
> Active_hooks is pretty much set by the server. Bit 0x80000000 is set to
> indicate that the bitmask is valid. One of my suspicions that I hope to
> confirm with debug is that in my case of failure active_hooks is 0.
>
> Would it not make more sense to return FALSE from this routine in that case?
> That is to say, if the bitmask is NOT valid, miss processing the hook instead
> of erroneously trying to process a hook that is not set.
The idea is that active_hooks is a shortcut to avoid calling the
server if we know that a hook is not set. If we don't have a valid
active_hooks then we need to call the server, which will then tell us
whether or not we really have a hook to call.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list