CVS: seamlessrdp/ServerExe main.c,1.15,1.16

Pierre Ossman <[email protected]> Wed, 15 Mar 2006 05:45:48 -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-serv26760/ServerExe

Modified Files:
	main.c 
Log Message:
Fix unicode title for enumeration.


Index: main.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** main.c	15 Mar 2006 12:11:02 -0000	1.15
--- main.c	15 Mar 2006 13:45:42 -0000	1.16
***************
*** 72,76 ****
  {
  	RECT rect;
! 	char title[150];
  	LONG styles;
  	int state;
--- 72,76 ----
  {
  	RECT rect;
! 	unsigned short title[150];
  	LONG styles;
  	int state;
***************
*** 99,105 ****
  		       rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 0);
  
! 	GetWindowText(hwnd, title, sizeof(title));
  
! 	vchannel_write("TITLE,0x%x,%s,0x%x", hwnd, vchannel_strfilter(title), 0);
  
  	if (styles & WS_MAXIMIZE)
--- 99,105 ----
  		       rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, 0);
  
! 	GetWindowTextW(hwnd, title, sizeof(title) / sizeof(*title));
  
! 	vchannel_write("TITLE,0x%x,%s,0x%x", hwnd, vchannel_strfilter_unicode(title), 0);
  
  	if (styles & WS_MAXIMIZE)



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