d3d9: Make Direct3DCreate9 fail if we can't initialize wined3d.
This commit is contained in:
parent
360d87f420
commit
a6e0c9cbf3
|
@ -53,6 +53,11 @@ IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion) {
|
|||
|
||||
TRACE("SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p\n", SDKVersion, object, object->WineD3D);
|
||||
|
||||
if (!object->WineD3D)
|
||||
{
|
||||
HeapFree( GetProcessHeap(), 0, object );
|
||||
object = NULL;
|
||||
}
|
||||
return (IDirect3D9*) object;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue