Paul Vriens : d3d9: Don't crash on NULL device_ptr.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Dec 19 03:22:42 CST 2005
Module: wine
Branch: refs/heads/master
Commit: 636cb19ad072e8618f4e4ce414eb10160a3b0049
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=636cb19ad072e8618f4e4ce414eb10160a3b0049
Author: Paul Vriens <Paul.Vriens at xs4all.nl>
Date: Mon Dec 19 10:00:08 2005 +0100
d3d9: Don't crash on NULL device_ptr.
---
dlls/d3d9/tests/stateblock.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d9/tests/stateblock.c b/dlls/d3d9/tests/stateblock.c
index 61b5be5..a5b1938 100644
--- a/dlls/d3d9/tests/stateblock.c
+++ b/dlls/d3d9/tests/stateblock.c
@@ -90,5 +90,7 @@ START_TEST(stateblock)
}
device_ptr = init_d3d9();
+ if (!device_ptr) return;
+
test_begin_end_state_block(device_ptr);
}
More information about the wine-cvs
mailing list