CVS: seamlessrdp/ServerExe/HookDll hookdll.cpp,1.23,1.24
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-serv28677
Modified Files:
hookdll.cpp
Log Message:
Do not send WM_CREATE messages for windows with negative sizes.
Index: hookdll.cpp
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** hookdll.cpp 31 Aug 2005 15:36:59 -0000 1.23
--- hookdll.cpp 5 Sep 2005 06:52:26 -0000 1.24
***************
*** 146,149 ****
--- 146,152 ----
if ( cs->style & WS_DLGFRAME ) {
+ if ( cs->cx < 0 || cs->cy < 0 )
+ break;
+
snprintf( result, sizeof( result ),
"CREATE1,0x%p,0x%x\n",
***************
*** 156,160 ****
details->hwnd,
cs->lpszName,
! 1, // FIXME: Check for WS_MAXIMIZE/WS_MINIMIZE
0 );
result[ sizeof( result ) - 1 ] = '\0';
--- 159,163 ----
details->hwnd,
cs->lpszName,
! 1, // FIXME: Check for WS_MAXIMIZE/WS_MINIMIZE
0 );
result[ sizeof( result ) - 1 ] = '\0';
-------------------------------------------------------
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