CVS: seamlessrdp/ServerExe main.cpp,1.9,1.10

Peter Åstrand <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19923

Modified Files:
	main.cpp 
Log Message:
When CreateProcess fails, print the requested cmdline.


Index: main.cpp
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** main.cpp	31 Aug 2005 15:36:59 -0000	1.9
--- main.cpp	7 Mar 2006 15:07:19 -0000	1.10
***************
*** 4,11 ****
--- 4,14 ----
  
  #include <windows.h>
+ #include <stdio.h>
  
  #include "resource.h"
  #include "hookdll/hook.h"
  
+ #define snprintf _snprintf
+ 
  //
  // some global data
***************
*** 263,267 ****
          } else {
              // CreateProcess failed.
!             Message( "Unable to launch the requested application" );
          }
      } else
--- 266,272 ----
          } else {
              // CreateProcess failed.
! 	    char msg[ 256 ];
! 	    snprintf( msg, sizeof( msg ), "Unable to launch the requested application:\n%s", process );
! 	    Message( msg );
          }
      } else



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.