add some more error checking
This commit is contained in:
parent
31a3118de6
commit
3562c2bd7a
2 changed files with 4 additions and 1 deletions
|
@ -38,6 +38,9 @@ HRESULT ddc_GetClipList(IDirectDrawClipperImpl* This, LPRECT lpRect, LPRGNDATA l
|
|||
if (lpRect)
|
||||
DeleteObject(region);
|
||||
|
||||
if (*lpdwSiz == 0)
|
||||
return DDERR_REGIONTOOSMALL;
|
||||
|
||||
return DD_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue