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
536bdfde
Commit
536bdfde
authored
Feb 08, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Feb 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler_43: Remove ERR() on HeapAlloc failure for small sizes known at compile time.
parent
76b91051
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
+3
-18
blob.c
dlls/d3dcompiler_43/blob.c
+0
-3
compiler.c
dlls/d3dcompiler_43/compiler.c
+3
-9
reflection.c
dlls/d3dcompiler_43/reflection.c
+0
-6
No files found.
dlls/d3dcompiler_43/blob.c
View file @
536bdfde
...
...
@@ -148,10 +148,7 @@ HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3DBlob **blob)
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
ERR
(
"Failed to allocate D3D blob object memory
\n
"
);
return
E_OUTOFMEMORY
;
}
hr
=
d3dcompiler_blob_init
(
object
,
data_size
);
if
(
FAILED
(
hr
))
...
...
dlls/d3dcompiler_43/compiler.c
View file @
536bdfde
...
...
@@ -84,10 +84,8 @@ static void wpp_write_message(const char *fmt, va_list args)
{
wpp_messages
=
HeapAlloc
(
GetProcessHeap
(),
0
,
MESSAGEBUFFER_INITIAL_SIZE
);
if
(
wpp_messages
==
NULL
)
{
ERR
(
"Error allocating memory for parser messages
\n
"
);
return
;
}
wpp_messages_capacity
=
MESSAGEBUFFER_INITIAL_SIZE
;
}
...
...
@@ -189,10 +187,8 @@ static void *wpp_open_mem(const char *filename, int type)
if
(
current_include
==
NULL
)
return
NULL
;
desc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
desc
));
if
(
!
desc
)
{
ERR
(
"Error allocating memory
\n
"
);
return
NULL
;
}
hr
=
ID3DInclude_Open
(
current_include
,
type
?
D3D_INCLUDE_LOCAL
:
D3D_INCLUDE_SYSTEM
,
filename
,
parent_include
,
(
LPCVOID
*
)
&
desc
->
buffer
,
...
...
@@ -275,10 +271,8 @@ static void wpp_write_mem(const char *buffer, unsigned int len)
{
wpp_output
=
HeapAlloc
(
GetProcessHeap
(),
0
,
BUFFER_INITIAL_CAPACITY
);
if
(
!
wpp_output
)
{
ERR
(
"Error allocating memory
\n
"
);
return
;
}
wpp_output_capacity
=
BUFFER_INITIAL_CAPACITY
;
}
if
(
len
>
wpp_output_capacity
-
wpp_output_size
)
...
...
dlls/d3dcompiler_43/reflection.c
View file @
536bdfde
...
...
@@ -1282,10 +1282,7 @@ static struct d3dcompiler_shader_reflection_type *get_reflection_type(struct d3d
type
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
type
));
if
(
!
type
)
{
ERR
(
"Failed to allocate type memory.
\n
"
);
return
NULL
;
}
type
->
ID3D11ShaderReflectionType_iface
.
lpVtbl
=
&
d3dcompiler_shader_reflection_type_vtbl
;
type
->
id
=
offset
;
...
...
@@ -1833,10 +1830,7 @@ HRESULT WINAPI D3DReflect(const void *data, SIZE_T data_size, REFIID riid, void
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
{
ERR
(
"Failed to allocate D3D compiler shader reflection object memory
\n
"
);
return
E_OUTOFMEMORY
;
}
hr
=
d3dcompiler_shader_reflection_init
(
object
,
data
,
data_size
);
if
(
FAILED
(
hr
))
...
...
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