CVS: seamlessrdp/ServerExe/HookDll hookdll.c,1.9,1.10
Pierre Ossman <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19066/ServerExe/HookDll
Modified Files:
hookdll.c
Log Message:
Move title info out of the STATE command.
Index: hookdll.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** hookdll.c 10 Mar 2006 09:12:36 -0000 1.9
--- hookdll.c 10 Mar 2006 12:27:38 -0000 1.10
***************
*** 158,163 ****
cbt_hook_proc(int code, WPARAM wparam, LPARAM lparam)
{
- char title[150];
-
if (code < 0)
goto end;
--- 158,161 ----
***************
*** 171,186 ****
show = LOWORD(lparam);
- if ((show == SW_SHOWMINIMIZED) || (show == SW_MINIMIZE))
- {
- MessageBox(0,
- "Minimizing windows is not allowed in this version. Sorry!",
- "SeamlessRDP", MB_OK);
- return 1;
- }
-
- GetWindowText((HWND) wparam, title, sizeof(title));
-
- /* FIXME: Strip title of dangerous characters */
-
if (show == SW_SHOWNORMAL)
state = 0;
--- 169,172 ----
***************
*** 189,194 ****
else if (show == SW_SHOWMAXIMIZED)
state = 2;
! vchannel_write("SETSTATE,0x%p,%s,0x%x,0x%x",
! (HWND) wparam, title, state, 0);
break;
}
--- 175,179 ----
else if (show == SW_SHOWMAXIMIZED)
state = 2;
! vchannel_write("STATE,0x%p,0x%x,0x%x", (HWND) wparam, state, 0);
break;
}
-------------------------------------------------------
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