wined3d/vertexdeclaration: Return when out of memory (Coverity).

This commit is contained in:
Paul Vriens 2007-08-21 17:13:55 +02:00 committed by Alexandre Julliard
parent 1691ca5ee3
commit ffb1e74eac
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ static HRESULT WINAPI IWineD3DVertexDeclarationImpl_SetDeclaration(IWineD3DVerte
This->pDeclarationWine = HeapAlloc(GetProcessHeap(), 0, sizeof(WINED3DVERTEXELEMENT) * element_count);
if (!This->pDeclarationWine) {
ERR("Memory allocation failed\n");
hr = WINED3DERR_OUTOFVIDEOMEMORY;
return WINED3DERR_OUTOFVIDEOMEMORY;
} else {
CopyMemory(This->pDeclarationWine, elements, sizeof(WINED3DVERTEXELEMENT) * element_count);
}