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

Peter Åstrand <[email protected]> Fri, 14 Mar 2008 04:24:35 -0700
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv13760/ServerExe

Modified Files:
	main.c 
Log Message:
Ignore cmd.exe during enumeration. 



Index: main.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** main.c	7 Mar 2008 11:27:12 -0000	1.33
--- main.c	14 Mar 2008 11:24:33 -0000	1.34
***************
*** 106,109 ****
--- 106,117 ----
  		return TRUE;
  
+ 	/* Since WH_CALLWNDPROC is not effective on cmd.exe, make sure
+ 	   we ignore it during enumeration as well. Make sure to
+ 	   remove this when cmd.exe support has been added, though. */
+ 	char classname[32];
+ 	if (GetClassName(hwnd, classname, sizeof(classname))
+ 	    && !strcmp(classname, "ConsoleWindowClass"))
+ 		return TRUE;
+ 
  	if (styles & WS_POPUP)
  		parent = (HWND) GetWindowLong(hwnd, GWL_HWNDPARENT);


-------------------------------------------------------------------------
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/