https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b78916119963e4368adf0…
commit b78916119963e4368adf0481ee98ba61e54174fe
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Feb 8 00:31:13 2018 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sat Feb 10 18:04:05 2018 +0100
[DXG] Fix a Clang-Cl warning about DDHAL_CB32_CANCREATESURFACE
"warning: use of logical '&&' with constant operand
[-Wconstant-logical-operand]"
CORE-14306
---
win32ss/reactx/dxg/dd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/reactx/dxg/dd.c b/win32ss/reactx/dxg/dd.c
index 38e634a336..97e38d52e4 100644
--- a/win32ss/reactx/dxg/dd.c
+++ b/win32ss/reactx/dxg/dd.c
@@ -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);
}