add support for DDSD_LPSURFACE and DDSD_PITCH

This commit is contained in:
FunkyFr3sh 2022-09-15 10:10:52 +02:00
parent f39e3fcddb
commit edf69fcc2a
3 changed files with 11 additions and 3 deletions

View file

@ -85,7 +85,7 @@ ULONG __stdcall IDirectDrawSurface__Release(IDirectDrawSurfaceImpl* This)
{
DeleteObject(This->bitmap);
}
else if (This->surface)
else if (This->surface && !This->custom_surface)
{
HeapFree(GetProcessHeap(), 0, This->surface);
}