Author: greatlrd
Date: Tue Nov 27 14:24:22 2007
New Revision: 30816
URL:
http://svn.reactos.org/svn/reactos?rev=30816&view=rev
Log:
Updating d3d9 from
winehq.org cvs/git date 27/11-2007
Modified:
trunk/reactos/dll/directx/wine/d3d9/device.c
Modified: trunk/reactos/dll/directx/wine/d3d9/device.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/d3d9/devi…
==============================================================================
--- trunk/reactos/dll/directx/wine/d3d9/device.c (original)
+++ trunk/reactos/dll/directx/wine/d3d9/device.c Tue Nov 27 14:24:22 2007
@@ -603,6 +603,7 @@
}
} else {
WARN("Call to IWineD3DDevice_GetDepthStencilSurface failed\n");
+ *ppZStencilSurface = NULL;
}
LeaveCriticalSection(&d3d9_cs);
return hr;
@@ -1127,6 +1128,7 @@
if (hr != S_OK) return NULL;
hr = IDirect3DDevice9Impl_CreateVertexDeclaration((IDirect3DDevice9 *) This,
elements, &pDecl);
+ HeapFree(GetProcessHeap(), 0, elements); /* CreateVertexDeclaration makes a copy */
if (hr != S_OK) return NULL;
if(This->declArraySize == This->numConvertedDecls) {