CVS: seamlessrdp/ServerExe main.c,1.22,1.23
Pierre Ossman <[email protected]> Fri, 17 Mar 2006 08:23:11 -0800
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18287/ServerExe
Modified Files:
main.c
Log Message:
Break loops caused by STATE.
Index: main.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** main.c 17 Mar 2006 13:11:20 -0000 1.22
--- main.c 17 Mar 2006 16:23:08 -0000 1.23
***************
*** 52,59 ****
--- 52,61 ----
typedef void (*zchange_proc_t) (HWND hwnd, HWND behind);
typedef void (*focus_proc_t) (HWND hwnd);
+ typedef void (*set_state_proc_t) (HWND hwnd, int state);
static move_window_proc_t g_move_window_fn = NULL;
static zchange_proc_t g_zchange_fn = NULL;
static focus_proc_t g_focus_fn = NULL;
+ static set_state_proc_t g_set_state_fn = NULL;
static void
***************
*** 150,161 ****
do_state(HWND hwnd, int state)
{
! if (state == 0)
! ShowWindow(hwnd, SW_RESTORE);
! else if (state == 1)
! ShowWindow(hwnd, SW_MINIMIZE);
! else if (state == 2)
! ShowWindow(hwnd, SW_MAXIMIZE);
! else
! debug("Invalid state %d sent.", state);
}
--- 152,156 ----
do_state(HWND hwnd, int state)
{
! g_set_state_fn(hwnd, state);
}
***************
*** 290,296 ****
g_zchange_fn = (zchange_proc_t) GetProcAddress(hookdll, "SafeZChange");
g_focus_fn = (focus_proc_t) GetProcAddress(hookdll, "SafeFocus");
if (!set_hooks_fn || !remove_hooks_fn || !instance_count_fn || !g_move_window_fn
! || !g_zchange_fn || !g_focus_fn)
{
FreeLibrary(hookdll);
--- 285,292 ----
g_zchange_fn = (zchange_proc_t) GetProcAddress(hookdll, "SafeZChange");
g_focus_fn = (focus_proc_t) GetProcAddress(hookdll, "SafeFocus");
+ g_set_state_fn = (set_state_proc_t) GetProcAddress(hookdll, "SafeSetState");
if (!set_hooks_fn || !remove_hooks_fn || !instance_count_fn || !g_move_window_fn
! || !g_zchange_fn || !g_focus_fn || !g_set_state_fn)
{
FreeLibrary(hookdll);
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642