CVS: seamlessrdp/ServerExe main.cpp,1.4,1.5 resource.h,1.3,1.4

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

Modified Files:
	main.cpp resource.h 
Log Message:
Indenting with astyle instead of indent

Index: main.cpp
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** main.cpp	30 Jun 2005 14:46:14 -0000	1.4
--- main.cpp	1 Jul 2005 06:50:52 -0000	1.5
***************
*** 115,125 ****
  
      switch (cmd) {
!     case ID_WMEXIT:
!         {
              PostQuitMessage(0);
              break;
          }
!     case ID_WMABOUT:
!         {
              AboutDlg();
              break;
--- 115,123 ----
  
      switch (cmd) {
!     case ID_WMEXIT: {
              PostQuitMessage(0);
              break;
          }
!     case ID_WMABOUT: {
              AboutDlg();
              break;
***************
*** 134,144 ****
  {
      switch (uMsg) {
!     case WM_DESTROY:
!         {
              PostQuitMessage(0);
              return 0;
          }
!     case WM_TRAY_NOTIFY:
!         {
              if (lParam == WM_RBUTTONDOWN)
                  DoContextMenu();
--- 132,140 ----
  {
      switch (uMsg) {
!     case WM_DESTROY: {
              PostQuitMessage(0);
              return 0;
          }
!     case WM_TRAY_NOTIFY: {
              if (lParam == WM_RBUTTONDOWN)
                  DoContextMenu();
***************
*** 173,177 ****
      }
  
!     // create the frame 
      ghWnd = CreateWindow(szAppName, szAppName,
                           WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS |
--- 169,173 ----
      }
  
!     // create the frame
      ghWnd = CreateWindow(szAppName, szAppName,
                           WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS |
***************
*** 196,200 ****
      if (!WTSWinClipper::Init()) {
          Message
!             ("Application not installed correctly: Unable to init hookdll.dll.");
          return false;
      }
--- 192,196 ----
      if (!WTSWinClipper::Init()) {
          Message
!         ("Application not installed correctly: Unable to init hookdll.dll.");
          return false;
      }
***************
*** 205,210 ****
          WTSWinClipper::SetCbtHook();
          return true;
!     }
!     else {
          // already hooked
          return false;
--- 201,205 ----
          WTSWinClipper::SetCbtHook();
          return true;
!     } else {
          // already hooked
          return false;
***************
*** 212,216 ****
  }
  
! // 
  // our main loop
  //
--- 207,211 ----
  }
  
! //
  // our main loop
  //
***************
*** 230,235 ****
  
          // From MSDN:
!         // Note that custom shell applications do not receive WH_SHELL messages. Therefore, any application that 
!         // registers itself as the default shell must call the SystemParametersInfo function with SPI_SETMINIMIZEDMETRICS 
          // before it (or any other application) can receive WH_SHELL messages.
  
--- 225,230 ----
  
          // From MSDN:
!         // Note that custom shell applications do not receive WH_SHELL messages. Therefore, any application that
!         // registers itself as the default shell must call the SystemParametersInfo function with SPI_SETMINIMIZEDMETRICS
          // before it (or any other application) can receive WH_SHELL messages.
  
***************
*** 256,260 ****
  
          if (m_create != false) {
!             // A loop to watch the process. 
              GetExitCodeProcess(procInfo.hProcess, &dwExitCode);
  
--- 251,255 ----
  
          if (m_create != false) {
!             // A loop to watch the process.
              GetExitCodeProcess(procInfo.hProcess, &dwExitCode);
  
***************
*** 267,277 ****
              CloseHandle(procInfo.hProcess);
              CloseHandle(procInfo.hThread);
!         }
!         else {
              // CreateProcess failed.
              Message("Unable to launch the requested application");
          }
!     }
!     else
          // we are launching without an app, therefore we will show the system tray app and wait for the user to close it
      {
--- 262,270 ----
              CloseHandle(procInfo.hProcess);
              CloseHandle(procInfo.hThread);
!         } else {
              // CreateProcess failed.
              Message("Unable to launch the requested application");
          }
!     } else
          // we are launching without an app, therefore we will show the system tray app and wait for the user to close it
      {

Index: resource.h
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/resource.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** resource.h	30 Jun 2005 14:14:56 -0000	1.3
--- resource.h	1 Jul 2005 06:50:52 -0000	1.4
***************
*** 23,27 ****
  
  // Next default values for new objects
! // 
  #ifdef APSTUDIO_INVOKED
  #ifndef APSTUDIO_READONLY_SYMBOLS
--- 23,27 ----
  
  // Next default values for new objects
! //
  #ifdef APSTUDIO_INVOKED
  #ifndef APSTUDIO_READONLY_SYMBOLS



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
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.