Commit 7d0f8a32 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

d3d8: Don't crash if d3d8 can't be loaded.

parent e55ed113
......@@ -106,6 +106,8 @@ static void test_ValidatePixelShader(void)
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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment