d3d9/tests: Fix possible test failures.
commit76a0ab7f061d8e47e4ea0363aae02b8534572903
authorZhiyi Zhang <zzhang@codeweavers.com>
Tue, 31 Mar 2020 13:39:32 +0000 (31 21:39 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 31 Mar 2020 15:24:04 +0000 (31 17:24 +0200)
treef6049cc1065aaf54dd4336b2c600f613a29ee76f
parent0bd130f213a2c5a4c06c30785703316d1d73ea4a
d3d9/tests: Fix possible test failures.

expect_messages points to a local variable. When it goes out of scope, it
reads into random memory, causing failures.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/d3d9/tests/d3d9ex.c
dlls/d3d9/tests/device.c