[PATCH 5/5] ddraw/tests: Init the lock desc before using it.

Stefan Dösinger stefan at codeweavers.com
Mon Jan 27 15:45:28 CST 2020


Signed-off-by: Stefan Dösinger <stefan at codeweavers.com>

---

We got away with this by pure luck because the value was set to something
huge, which is ignored for the specific combination of version 7 sysmem
texture.
---
 dlls/ddraw/tests/ddraw7.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/ddraw/tests/ddraw7.c b/dlls/ddraw/tests/ddraw7.c
index 75d11fcac32..dabd1747c5f 100644
--- a/dlls/ddraw/tests/ddraw7.c
+++ b/dlls/ddraw/tests/ddraw7.c
@@ -17088,6 +17088,9 @@ static void test_compressed_surface_stretch(void)
     memset(&fx, 0, sizeof(fx));
     fx.dwSize = sizeof(fx);
 
+    memset(&lock, 0, sizeof(lock));
+    lock.dwSize = sizeof(lock);
+
     for (i = 0; i < ARRAY_SIZE(test_caps); ++i)
     {
         src_surface_desc.ddsCaps.dwCaps = test_caps[i].src_caps;
-- 
2.24.1




More information about the wine-devel mailing list