Module: wine Branch: master Commit: ffb1e74eacfebd93a9b4b050358448576566c23d URL: http://source.winehq.org/git/wine.git/?a=commit;h=ffb1e74eacfebd93a9b4b05035...
Author: Paul Vriens paul.vriens.wine@gmail.com Date: Tue Aug 21 17:13:55 2007 +0200
wined3d/vertexdeclaration: Return when out of memory (Coverity).
---
dlls/wined3d/vertexdeclaration.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/vertexdeclaration.c b/dlls/wined3d/vertexdeclaration.c index 292f1f0..bc22d89 100644 --- a/dlls/wined3d/vertexdeclaration.c +++ b/dlls/wined3d/vertexdeclaration.c @@ -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); }