wine/dlls/d3d9 query.c

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 31 03:59:56 CST 2005


ChangeSet ID:	20981
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/10/31 03:59:56

Modified files:
	dlls/d3d9      : query.c 

Log message:
	Roderick Colenbrander <thunderbird2k at gmx.net>
	In case of D3D9 the CreateQuery call can be used to retrieve status  
	information. According to MSDN the 'ppQuery' parameter can be set to
	NULL to detect if a certain query Type is supported.

Patch: http://cvs.winehq.org/patch.py?id=20981

Old revision  New revision  Changes     Path
 1.10          1.11          +1 -3       wine/dlls/d3d9/query.c

Index: wine/dlls/d3d9/query.c
diff -u -p wine/dlls/d3d9/query.c:1.10 wine/dlls/d3d9/query.c:1.11
--- wine/dlls/d3d9/query.c	31 Oct 2005  9:59:56 -0000
+++ /dev/null	31 Oct 2005  9:59:56 -0000
@@ -124,9 +124,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_Crea
   HRESULT hr = D3D_OK;
 
   TRACE("(%p) Relay\n", This);
-  if (NULL == ppQuery) {
-    return D3DERR_INVALIDCALL;
-  }
+
   /* Allocate the storage for the device */
   object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3DQuery9Impl));
   if (NULL == object) {



More information about the wine-cvs mailing list