d3d8/tests: Fix possible test failures.
commit0bd130f213a2c5a4c06c30785703316d1d73ea4a
authorZhiyi Zhang <zzhang@codeweavers.com>
Tue, 31 Mar 2020 13:39:19 +0000 (31 21:39 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 31 Mar 2020 15:24:01 +0000 (31 17:24 +0200)
tree3377396b9732dd4293d8bf01f10417b6183d545d
parent63b294a9bc456e9ab0d0266dcc83ff78d9107077
d3d8/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/d3d8/tests/device.c