RE: dlls/user/hook.c HOOK_CallHooks() help

2006-11-09 Thread Phil Lodwick
I am beginning to suspect a problem with wine_server_call. I am confused because I would have thought this was something that is pretty solid. In HOOK_CallHooks we call SERVER_START_REQ( start_hook_chain ). When I put debugging in the server I see that reply->active_hooks is getting properly set

RE: dlls/user/hook.c HOOK_CallHooks() help

2006-11-08 Thread Phil Lodwick
Alexandre, > 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. I don't know if this matters,

Re: dlls/user/hook.c HOOK_CallHooks() help

2006-11-08 Thread Alexandre Julliard
"Phil Lodwick" <[EMAIL PROTECTED]> writes: > Active_hooks is pretty much set by the server. Bit 0x8000 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

RE: dlls/user/hook.c HOOK_CallHooks() help

2006-11-08 Thread Phil Lodwick
Unfortunately this problem I am seeing is very hard to reproduce. I have added some more debug in case it happens again. However, looking at code, the HOOK_IsHooked function seems strange: BOOL HOOK_IsHooked( INT id ) { struct user_thread_info *thread_info = get_user_thread_info(); if (