Stefan Dösinger : ddraw: Remove an incorrect size check.
Module: wine Branch: master Commit: b4afa19272abefb22c43af5852496b02ced510aa URL: http://source.winehq.org/git/wine.git/?a=commit;h=b4afa19272abefb22c43af5852... Author: Stefan Dösinger <stefandoesinger(a)gmx.at> Date: Thu Oct 12 19:31:01 2006 +0200 ddraw: Remove an incorrect size check. --- dlls/ddraw/ddraw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c index a9177a5..aa21eb0 100644 --- a/dlls/ddraw/ddraw.c +++ b/dlls/ddraw/ddraw.c @@ -2315,7 +2315,7 @@ IDirectDrawImpl_CreateSurface(IDirectDra desc2.ddsCaps.dwCaps |= DDSCAPS_BACKBUFFER; } /* Set the DDSCAPS2_MIPMAPSUBLEVEL flag on mipmap sublevels according to the msdn */ - if((DDSD->ddsCaps.dwCaps & DDSCAPS_MIPMAP)&&(DDSD->dwSize >= sizeof(DDSURFACEDESC2))) + if(DDSD->ddsCaps.dwCaps & DDSCAPS_MIPMAP) { desc2.ddsCaps.dwCaps2 |= DDSCAPS2_MIPMAPSUBLEVEL; }
participants (1)
-
Alexandre Julliard