Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5ef8a8b2
Commit
5ef8a8b2
authored
Feb 08, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Remove ERR() on HeapAlloc failure for small sizes known at compile time.
parent
b288f7be
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
36 deletions
+0
-36
d3drm.c
dlls/d3drm/d3drm.c
+0
-3
device.c
dlls/d3drm/device.c
+0
-3
frame.c
dlls/d3drm/frame.c
+0
-12
light.c
dlls/d3drm/light.c
+0
-3
material.c
dlls/d3drm/material.c
+0
-3
meshbuilder.c
dlls/d3drm/meshbuilder.c
+0
-6
texture.c
dlls/d3drm/texture.c
+0
-3
viewport.c
dlls/d3drm/viewport.c
+0
-3
No files found.
dlls/d3drm/d3drm.c
View file @
5ef8a8b2
...
...
@@ -1686,10 +1686,7 @@ HRESULT Direct3DRM_create(IUnknown** ppObj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRM_iface
.
lpVtbl
=
&
Direct3DRM_Vtbl
;
object
->
IDirect3DRM2_iface
.
lpVtbl
=
&
Direct3DRM2_Vtbl
;
...
...
dlls/d3drm/device.c
View file @
5ef8a8b2
...
...
@@ -1161,10 +1161,7 @@ HRESULT Direct3DRMDevice_create(REFIID riid, IUnknown** ppObj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMDeviceImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMDevice2_iface
.
lpVtbl
=
&
Direct3DRMDevice2_Vtbl
;
object
->
IDirect3DRMDevice3_iface
.
lpVtbl
=
&
Direct3DRMDevice3_Vtbl
;
...
...
dlls/d3drm/frame.c
View file @
5ef8a8b2
...
...
@@ -203,10 +203,7 @@ static HRESULT Direct3DRMFrameArray_create(IDirect3DRMFrameArray** obj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMFrameArrayImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMFrameArray_iface
.
lpVtbl
=
&
Direct3DRMFrameArray_Vtbl
;
object
->
ref
=
1
;
...
...
@@ -319,10 +316,7 @@ static HRESULT Direct3DRMVisualArray_create(IDirect3DRMVisualArray** ret_iface)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMVisualArrayImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMVisualArray_iface
.
lpVtbl
=
&
Direct3DRMVisualArray_Vtbl
;
object
->
ref
=
1
;
...
...
@@ -439,10 +433,7 @@ static HRESULT Direct3DRMLightArray_create(IDirect3DRMLightArray** obj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMLightArrayImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMLightArray_iface
.
lpVtbl
=
&
Direct3DRMLightArray_Vtbl
;
object
->
ref
=
1
;
...
...
@@ -2665,10 +2656,7 @@ HRESULT Direct3DRMFrame_create(REFIID riid, IUnknown* parent, IUnknown** ret_ifa
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMFrameImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMFrame2_iface
.
lpVtbl
=
&
Direct3DRMFrame2_Vtbl
;
object
->
IDirect3DRMFrame3_iface
.
lpVtbl
=
&
Direct3DRMFrame3_Vtbl
;
...
...
dlls/d3drm/light.c
View file @
5ef8a8b2
...
...
@@ -426,10 +426,7 @@ HRESULT Direct3DRMLight_create(IUnknown** ppObj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMLightImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMLight_iface
.
lpVtbl
=
&
Direct3DRMLight_Vtbl
;
object
->
ref
=
1
;
...
...
dlls/d3drm/material.c
View file @
5ef8a8b2
...
...
@@ -312,10 +312,7 @@ HRESULT Direct3DRMMaterial_create(IDirect3DRMMaterial2** ret_iface)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMMaterialImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMMaterial2_iface
.
lpVtbl
=
&
Direct3DRMMaterial2_Vtbl
;
object
->
ref
=
1
;
...
...
dlls/d3drm/meshbuilder.c
View file @
5ef8a8b2
...
...
@@ -2522,10 +2522,7 @@ HRESULT Direct3DRMMeshBuilder_create(REFIID riid, IUnknown** ppObj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMMeshBuilderImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMMeshBuilder2_iface
.
lpVtbl
=
&
Direct3DRMMeshBuilder2_Vtbl
;
object
->
IDirect3DRMMeshBuilder3_iface
.
lpVtbl
=
&
Direct3DRMMeshBuilder3_Vtbl
;
...
...
@@ -3086,10 +3083,7 @@ HRESULT Direct3DRMMesh_create(IDirect3DRMMesh** obj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMMeshImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMMesh_iface
.
lpVtbl
=
&
Direct3DRMMesh_Vtbl
;
object
->
ref
=
1
;
...
...
dlls/d3drm/texture.c
View file @
5ef8a8b2
...
...
@@ -849,10 +849,7 @@ HRESULT Direct3DRMTexture_create(REFIID riid, IUnknown** ret_iface)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMTextureImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMTexture2_iface
.
lpVtbl
=
&
Direct3DRMTexture2_Vtbl
;
object
->
IDirect3DRMTexture3_iface
.
lpVtbl
=
&
Direct3DRMTexture3_Vtbl
;
...
...
dlls/d3drm/viewport.c
View file @
5ef8a8b2
...
...
@@ -971,10 +971,7 @@ HRESULT Direct3DRMViewport_create(REFIID riid, IUnknown** ppObj)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DRMViewportImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirect3DRMViewport_iface
.
lpVtbl
=
&
Direct3DRMViewport_Vtbl
;
object
->
IDirect3DRMViewport2_iface
.
lpVtbl
=
&
Direct3DRMViewport2_Vtbl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment