22 Oct
2012
22 Oct
'12
6:35 p.m.
Christian Costa <titan.costa(a)gmail.com> writes:
@@ -236,20 +236,32 @@ BOOL WINAPI GetClientRect( HWND hwnd, LPRECT rect )
/******************************************************************* - * ClientToScreen (USER32.@) + * ClientToScreen (USER32.@) */ BOOL WINAPI ClientToScreen( HWND hwnd, LPPOINT lppnt ) { + if (!IsWindow( hwnd )) + { + SetLastError( ERROR_INVALID_WINDOW_HANDLE ); + return FALSE; + } +
You should never use IsWindow(). Handles should be checked at the point where they are used. -- Alexandre Julliard julliard(a)winehq.org