mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
fixing two return code thx Ventron for the info for one of the return code
svn path=/trunk/; revision=26752
This commit is contained in:
parent
336c7c37c4
commit
393d729ca1
1 changed files with 24 additions and 2 deletions
|
@ -28,8 +28,30 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
|
|||
if ( (pDDSD->ddsCaps.dwCaps & DDSCAPS_SYSTEMMEMORY) &&
|
||||
(pDDSD->ddsCaps.dwCaps & DDSCAPS_VIDEOMEMORY))
|
||||
{
|
||||
/* translate the error code I got back to a name */
|
||||
return 0x88760064;
|
||||
return DDERR_INVALIDCAPS;
|
||||
}
|
||||
|
||||
/* check if pDDSD.dwFlags DDSD_LPSURFACE is set or not */
|
||||
if (pDDSD->dwFlags & DDSD_LPSURFACE)
|
||||
{
|
||||
/*
|
||||
* DDSD_LPSURFACE flag is set now we start vaildate see if
|
||||
* pDDSD->lpSurface are a pointer or not
|
||||
*/
|
||||
if (IsBadReadPtr(pDDSD->lpSurface,sizeof(LPVOID)))
|
||||
{
|
||||
return DDERR_INVALIDPARAMS;
|
||||
}
|
||||
|
||||
/* more code will follow */
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* DDSD_LPSURFACE flag is not set we do not handler this case yet
|
||||
*/
|
||||
|
||||
/* more code will follow */
|
||||
}
|
||||
|
||||
return DDERR_GENERIC;
|
||||
|
|
Loading…
Reference in a new issue