[DXG] Fix a Clang-Cl warning about DDHAL_CB32_CANCREATESURFACE

"warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]"

CORE-14306
This commit is contained in:
Serge Gautherie 2018-02-08 00:31:13 +01:00 committed by Thomas Faber
parent 71ebfd8717
commit b789161199
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -28,7 +28,7 @@ DxDdCanCreateSurface(
// assign out DirectDrawGlobal to SurfaceData
SurfaceData->lpDD = (PDD_DIRECTDRAW_GLOBAL)peDdGl;
if (peDdGl->ddCallbacks.dwFlags && DDHAL_CB32_CANCREATESURFACE)
if (peDdGl->ddCallbacks.dwFlags & DDHAL_CB32_CANCREATESURFACE)
{
RetVal = peDdGl->ddCallbacks.CanCreateSurface(SurfaceData);
}