Changeset 2768 for trunk/src/user32/user32.cpp
- Timestamp:
- Feb 12, 2000, 7:09:50 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/user32.cpp
r2739 r2768 1 /* $Id: user32.cpp,v 1.7 1 2000-02-10 18:49:51cbratschi Exp $ */1 /* $Id: user32.cpp,v 1.72 2000-02-12 18:09:49 cbratschi Exp $ */ 2 2 3 3 /* … … 148 148 { 149 149 dprintf2(("USER32: IntersectRect\n")); 150 if (!lprc Dst || !lprcSrc1 || !lprcSrc2)150 if (!lprcSrc1 || !lprcSrc2) 151 151 { 152 152 SetLastError(ERROR_INVALID_PARAMETER); … … 159 159 { 160 160 SetLastError(ERROR_INVALID_PARAMETER); 161 SetRectEmpty(lprcDst);161 if (lprcDst) SetRectEmpty(lprcDst); 162 162 return FALSE; 163 163 } 164 lprcDst->left = MAX(lprcSrc1->left,lprcSrc2->left); 165 lprcDst->right = MIN(lprcSrc1->right,lprcSrc2->right); 166 lprcDst->top = MAX(lprcSrc1->top,lprcSrc2->top); 167 lprcDst->bottom = MIN(lprcSrc1->bottom,lprcSrc2->bottom); 164 if (lprcDst) 165 { 166 lprcDst->left = MAX(lprcSrc1->left,lprcSrc2->left); 167 lprcDst->right = MIN(lprcSrc1->right,lprcSrc2->right); 168 lprcDst->top = MAX(lprcSrc1->top,lprcSrc2->top); 169 lprcDst->bottom = MIN(lprcSrc1->bottom,lprcSrc2->bottom); 170 } 168 171 169 172 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.