Mike McCormack : d3d8: Don't crash if d3d8 can't be loaded.
Alexandre Julliard
julliard at wine.codeweavers.com
Sat Oct 7 11:31:41 CDT 2006
Module: wine
Branch: master
Commit: 7d0f8a32e242d50c927886e4cce7b79ab16266ef
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7d0f8a32e242d50c927886e4cce7b79ab16266ef
Author: Mike McCormack <mike at codeweavers.com>
Date: Sat Oct 7 00:49:03 2006 +0900
d3d8: Don't crash if d3d8 can't be loaded.
---
dlls/d3d8/tests/d3d8_main.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d8/tests/d3d8_main.c b/dlls/d3d8/tests/d3d8_main.c
index 48d2436..f70b6d8 100644
--- a/dlls/d3d8/tests/d3d8_main.c
+++ b/dlls/d3d8/tests/d3d8_main.c
@@ -106,6 +106,8 @@ static void test_ValidatePixelShader(voi
START_TEST(d3d8_main)
{
HMODULE d3d8_handle = LoadLibraryA( "d3d8.dll" );
+ if (!d3d8_handle)
+ return;
ValidateVertexShader = (void*)GetProcAddress (d3d8_handle, "ValidateVertexShader" );
ValidatePixelShader = (void*)GetProcAddress (d3d8_handle, "ValidatePixelShader" );
test_ValidateVertexShader();
More information about the wine-cvs
mailing list