wined3d: Failing HeapAlloc() should be an ERR.
This commit is contained in:
parent
e028e3f7bd
commit
d9e58e6591
|
@ -55,7 +55,7 @@ const WINED3DLIGHT WINED3D_default_light = {
|
||||||
static void IWineD3DDeviceImpl_AddResource(IWineD3DDevice *iface, IWineD3DResource *resource);
|
static void IWineD3DDeviceImpl_AddResource(IWineD3DDevice *iface, IWineD3DResource *resource);
|
||||||
|
|
||||||
/* helper macros */
|
/* 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) { \
|
#define D3DCREATEOBJECTINSTANCE(object, type) { \
|
||||||
object=HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IWineD3D##type##Impl)); \
|
object=HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IWineD3D##type##Impl)); \
|
||||||
|
|
Loading…
Reference in New Issue