Michael Stefaniuc : d3d9/tests: Remove no-op binary & with all 1's ( PVS-Studio).

Alexandre Julliard julliard at wine.codeweavers.com
Fri Mar 6 06:27:29 CST 2015


Module: wine
Branch: master
Commit: 3730c99c2895dbe7ce23f99aa09a95ac3eb45f4d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3730c99c2895dbe7ce23f99aa09a95ac3eb45f4d

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Mar  6 10:24:36 2015 +0100

d3d9/tests: Remove no-op binary & with all 1's (PVS-Studio).

---

 dlls/d3d9/tests/visual.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index fcafb37..e7fdc94 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -99,7 +99,7 @@ static DWORD getPixelColorFromSurface(IDirect3DSurface9 *surface, UINT x, UINT y
     switch(desc.Format) {
         case D3DFMT_A8R8G8B8:
         {
-            color = ((DWORD *) lockedRect.pBits)[0] & 0xffffffff;
+            color = ((DWORD *) lockedRect.pBits)[0];
             break;
         }
         default:




More information about the wine-cvs mailing list