Commit 360d87f4 authored by Alexandre Julliard's avatar Alexandre Julliard

d3d8: Make Direct3DCreate8 fail if we can't initialize wined3d.

parent aba003de
......@@ -58,6 +58,11 @@ IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion) {
TRACE("Created Direct3D object @ %p, WineObj @ %p\n", object, object->WineD3D);
LeaveCriticalSection(&d3d8_cs);
if (!object->WineD3D)
{
HeapFree( GetProcessHeap(), 0, object );
object = NULL;
}
return (IDirect3D8*) object;
}
......
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