CVS: seamlessrdp/ServerExe/HookDll hookdll.cpp,1.15,1.16

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

Modified Files:
	hookdll.cpp 
Log Message:
Got rid of unnecessary buffer variables.


Index: hookdll.cpp
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** hookdll.cpp	30 Aug 2005 11:17:52 -0000	1.15
--- hookdll.cpp	30 Aug 2005 11:22:46 -0000	1.16
***************
*** 86,90 ****
      }
      
-     PCHAR buffer = NULL;
      char windowTitle[ 150 ] = { ""
                                };
--- 86,89 ----
***************
*** 117,121 ****
                    0 );
          result[ sizeof( result ) - 1 ] = '\0';
-         buffer = result;
          break;
          
--- 116,119 ----
***************
*** 144,148 ****
                        0 );
              result[ sizeof( result ) - 1 ] = '\0';
-             buffer = result;
          }
          break;
--- 142,145 ----
***************
*** 154,158 ****
                        "CREATE1,0x%p,0x%x\n",
                        details->hwnd, 0 );
-             buffer = result;
          }
          break;
--- 151,154 ----
***************
*** 164,168 ****
                        "DESTROY1,0x%p,0x%x\n",
                        details->hwnd, 0 );
-             buffer = result;
          }
          
--- 160,163 ----
***************
*** 175,180 ****
      
      if ( ChannelIsOpen() ) {
!         if ( buffer != NULL ) {
!             WriteToChannel( buffer );
          }
      }
--- 170,175 ----
      
      if ( ChannelIsOpen() ) {
!         if ( result[ 0 ] != '\0' ) {
!             WriteToChannel( result );
          }
      }
***************
*** 189,196 ****
      }
      
-     
-     PCHAR buffer = NULL;
-     
-     
      char windowTitle[ 150 ] = { ""
                                };
--- 184,187 ----
***************
*** 215,219 ****
                    LOWORD( lParam ),
                    0 );
-         buffer = result;
          break;
          
--- 206,209 ----
***************
*** 224,229 ****
      
      if ( ChannelIsOpen() ) {
!         if ( buffer != NULL ) {
!             WriteToChannel( buffer );
          }
      }
--- 214,219 ----
      
      if ( ChannelIsOpen() ) {
!         if ( result[ 0 ] != '\0' ) {
!             WriteToChannel( result );
          }
      }
***************
*** 240,245 ****
      
      if ( ChannelIsOpen() ) {
-         PCHAR buffer = NULL;
-         
          char windowTitle[ 150 ] = { ""
                                    };
--- 230,233 ----
***************
*** 297,302 ****
              strcat( result, "." );
              
-             buffer = result;
-             
              break;
              
--- 285,288 ----
***************
*** 342,347 ****
              strcat( result, "." );
              
-             buffer = result;
-             
              break;
              default:
--- 328,331 ----
***************
*** 349,354 ****
          }
          
!         if ( buffer != NULL ) {
!             WriteToChannel( buffer );
          }
      }
--- 333,338 ----
          }
          
!         if ( result[ 0 ] != '\0' ) {
!             WriteToChannel( result );
          }
      }



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
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.