Updating d3d9 from winehq.org cvs/git date 27/11-2007

svn path=/trunk/; revision=30816
This commit is contained in:
Magnus Olsen 2007-11-27 11:24:22 +00:00
parent e215ac24f1
commit 4223e8ab74

View file

@ -603,6 +603,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetDepthStencilSurface(LPDIRECT3DDE
}
} else {
WARN("Call to IWineD3DDevice_GetDepthStencilSurface failed\n");
*ppZStencilSurface = NULL;
}
LeaveCriticalSection(&d3d9_cs);
return hr;
@ -1127,6 +1128,7 @@ IDirect3DVertexDeclaration9 *getConvertedDecl(IDirect3DDevice9Impl *This, DWORD
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) {