Matteo Bruni : d3dx9/tests: Make the pixels array static.

Alexandre Julliard julliard at winehq.org
Mon Aug 5 14:58:35 CDT 2019


Module: wine
Branch: master
Commit: 15dd8e2b981ca32cae94409153627b3300bbeab8
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=15dd8e2b981ca32cae94409153627b3300bbeab8

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Mon Aug  5 20:51:14 2019 +0200

d3dx9/tests: Make the pixels array static.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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

diff --git a/dlls/d3dx9_36/tests/surface.c b/dlls/d3dx9_36/tests/surface.c
index a43072f..4a10492 100644
--- a/dlls/d3dx9_36/tests/surface.c
+++ b/dlls/d3dx9_36/tests/surface.c
@@ -1403,7 +1403,7 @@ static void test_D3DXSaveSurfaceToFileInMemory(IDirect3DDevice9 *device)
 
 static void test_D3DXSaveSurfaceToFile(IDirect3DDevice9 *device)
 {
-    const BYTE pixels[] =
+    static const BYTE pixels[] =
             {0xff, 0x00, 0x00, 0x00, 0xff, 0x00,
              0x00, 0x00, 0xff, 0x00, 0x00, 0xff,};
     DWORD pitch = sizeof(pixels) / 2;




More information about the wine-cvs mailing list