Commit in reactos/lib/user32/windows on MAIN
window.c+11-51.99 -> 1.100
minor fixes

reactos/lib/user32/windows
window.c 1.99 -> 1.100
diff -u -r1.99 -r1.100
--- window.c	22 Feb 2004 23:40:58 -0000	1.99
+++ window.c	26 Feb 2004 22:52:05 -0000	1.100
@@ -1,4 +1,4 @@
-/* $Id: window.c,v 1.99 2004/02/22 23:40:58 gvg Exp $
+/* $Id: window.c,v 1.100 2004/02/26 22:52:05 weiden Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS user32.dll
@@ -1375,8 +1375,14 @@
   LONG XMove, YMove;
   ULONG i;
 
-  NtUserGetClientOrigin(hWndFrom, &FromOffset);
-  NtUserGetClientOrigin(hWndTo, &ToOffset);
+  if(!NtUserGetClientOrigin(hWndFrom, &FromOffset))
+  {
+    return 0;
+  }
+  if(!NtUserGetClientOrigin(hWndTo, &ToOffset))
+  {
+    return 0;
+  }
   XMove = FromOffset.x - ToOffset.x;
   YMove = FromOffset.y - ToOffset.y;
 
@@ -1395,7 +1401,7 @@
 BOOL STDCALL 
 ScreenToClient(HWND hWnd, LPPOINT lpPoint)
 {
-  return(MapWindowPoints(NULL, hWnd, lpPoint, 1));
+  return(MapWindowPoints(NULL, hWnd, lpPoint, 1) != 0);
 }
 
 
@@ -1405,7 +1411,7 @@
 BOOL STDCALL
 ClientToScreen(HWND hWnd, LPPOINT lpPoint)
 {
-    return (MapWindowPoints( hWnd, NULL, lpPoint, 1 ));
+    return (MapWindowPoints( hWnd, NULL, lpPoint, 1 ) != 0);
 }
 
 
CVSspam 0.2.8