wined3d: Failing HeapAlloc() should be an ERR.

This commit is contained in:
Henri Verbeet 2009-01-09 10:23:42 +01:00 committed by Alexandre Julliard
parent e028e3f7bd
commit d9e58e6591
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ const WINED3DLIGHT WINED3D_default_light = {
static void IWineD3DDeviceImpl_AddResource(IWineD3DDevice *iface, IWineD3DResource *resource);
/* helper macros */
#define D3DMEMCHECK(object, ppResult) if(NULL == object) { *ppResult = NULL; WARN("Out of memory\n"); return WINED3DERR_OUTOFVIDEOMEMORY;}
#define D3DMEMCHECK(object, ppResult) if(NULL == object) { *ppResult = NULL; ERR("Out of memory\n"); return WINED3DERR_OUTOFVIDEOMEMORY;}
#define D3DCREATEOBJECTINSTANCE(object, type) { \
object=HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IWineD3D##type##Impl)); \