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
ef8ba283
Commit
ef8ba283
authored
Oct 04, 2004
by
Robert Shearman
Committed by
Alexandre Julliard
Oct 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewrite a section of code so that it doesn't use exit(0) when out of
memory.
parent
ffbed1ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
elf_module.c
dlls/dbghelp/elf_module.c
+10
-9
No files found.
dlls/dbghelp/elf_module.c
View file @
ef8ba283
...
...
@@ -733,18 +733,19 @@ static BOOL elf_load_file(struct process* pcs, const char* filename,
if
(
elf_info
->
flags
&
ELF_INFO_MODULE
)
{
struct
elf_module_info
*
elf_module_info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
elf_module_info
));
if
(
!
elf_module_info
)
goto
leave
;
elf_info
->
module
=
module_new
(
pcs
,
filename
,
DMT_ELF
,
(
load_offset
)
?
load_offset
:
start
,
size
,
0
,
0
);
if
(
!
elf_info
->
module
)
goto
leave
;
elf_info
->
module
->
elf_info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
elf_module_info
));
if
(
elf_info
->
module
->
elf_info
==
NULL
)
(
load_offset
)
?
load_offset
:
start
,
size
,
0
,
0
);
if
(
!
elf_info
->
module
)
{
ERR
(
"OOM
\n
"
);
exit
(
0
);
/* FIXME */
HeapFree
(
GetProcessHeap
(),
0
,
elf_module_info
);
goto
leave
;
}
elf_info
->
module
->
elf_info
->
elf_addr
=
load_offset
;
elf_info
->
module
->
elf_info
=
elf_module_info
;
elf_info
->
module
->
elf_info
->
elf_addr
=
load_offset
;
if
(
dbghelp_options
&
SYMOPT_DEFERRED_LOADS
)
{
...
...
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