CVS: seamlessrdp/ServerExe main.c,1.32,1.33

Peter Åstrand <[email protected]> Fri, 07 Mar 2008 03:27:14 -0800
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv10334/ServerExe

Modified Files:
	main.c 
Log Message:
Applied patch:

[ 1715358 ] seamlessrdp window close



Index: main.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** main.c	30 May 2006 10:39:11 -0000	1.32
--- main.c	7 Mar 2008 11:27:12 -0000	1.33
***************
*** 184,187 ****
--- 184,195 ----
  }
  
+ /* No need for locking, since this is a request rather than a message
+    that needs to indicate what has already happened. */
+ static void
+ do_destroy(HWND hwnd)
+ {
+ 	SendMessage(hwnd, WM_CLOSE, 0, 0);
+ }
+ 
  static void
  process_cmds(void)
***************
*** 220,223 ****
--- 228,233 ----
  		else if (strcmp(tok1, "FOCUS") == 0)
  			do_focus(strtoul(tok2, NULL, 0), (HWND) strtoul(tok3, NULL, 0));
+ 		else if (strcmp(tok1, "DESTROY") == 0)
+ 			do_destroy((HWND) strtoul(tok3, NULL, 0));
  	}
  }


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/