Stefan Dösinger : ddraw: Remove an incorrect size check.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 13 05:25:40 CDT 2006
Module: wine
Branch: master
Commit: b4afa19272abefb22c43af5852496b02ced510aa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b4afa19272abefb22c43af5852496b02ced510aa
Author: Stefan Dösinger <stefandoesinger at 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;
}
More information about the wine-cvs
mailing list