mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
Do not create a surface from wrong process.
if we found it was another process try call on createsurface that have started ddraw it will fail. svn path=/trunk/; revision=31258
This commit is contained in:
parent
0f4bc4008d
commit
4485c07783
1 changed files with 4 additions and 0 deletions
|
@ -54,6 +54,10 @@ Internal_CreateSurface( LPDDRAWI_DIRECTDRAW_INT pDDraw, LPDDSURFACEDESC2 pDDSD,
|
|||
{
|
||||
return DDERR_INVALIDPARAMS;
|
||||
}
|
||||
if (pDDraw->lpLcl->dwProcessId != GetCurrentProcessId() )
|
||||
{
|
||||
return DDERR_INVALIDOBJECT;
|
||||
}
|
||||
|
||||
if(!(pDDSD->dwFlags & DDSD_HEIGHT) && !(pDDSD->dwFlags & DDSD_HEIGHT)
|
||||
&& !(pDDSD->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE))
|
||||
|
|
Loading…
Reference in a new issue