]> git.cworth.org Git - apitrace/blobdiff - d3d9.py
Try to cope with missing functions.
[apitrace] / d3d9.py
diff --git a/d3d9.py b/d3d9.py
index 6e4ce24b8b2cc747b6f393149b88a22379e3bc62..152d48506bf93bbdb54687dc5a09079b218522ff 100644 (file)
--- a/d3d9.py
+++ b/d3d9.py
@@ -383,8 +383,8 @@ IDirect3DSwapChain9Ex.methods += [
 
 d3d9 = Dll("d3d9")
 d3d9.functions += [
-    Function(PDIRECT3D9, "Direct3DCreate9", [(UINT, "SDKVersion")]),
-    Function(HRESULT, "Direct3DCreate9Ex", [(UINT, "SDKVersion"), (OutPointer(PDIRECT3D9EX), "ppD3D")]),
+    Function(PDIRECT3D9, "Direct3DCreate9", [(UINT, "SDKVersion")], fail='NULL'),
+    Function(HRESULT, "Direct3DCreate9Ex", [(UINT, "SDKVersion"), (OutPointer(PDIRECT3D9EX), "ppD3D")], fail='D3DERR_NOTAVAILABLE'),
 ]
 
 if __name__ == '__main__':