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
cd2d8098
Commit
cd2d8098
authored
Jun 26, 2019
by
André Hentschel
Committed by
Alexandre Julliard
Jun 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Return on failed allocation (Coverity).
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
943d91c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
registry.c
dlls/kernelbase/registry.c
+3
-1
No files found.
dlls/kernelbase/registry.c
View file @
cd2d8098
...
...
@@ -2680,9 +2680,11 @@ static LONG load_mui_string(const WCHAR *file_name, UINT res_id, WCHAR *buffer,
return
ERROR_FILE_NOT_FOUND
;
size
=
GetFullPathNameW
(
file_name
,
0
,
NULL
,
NULL
);
full_name
=
heap_alloc
(
size
*
sizeof
(
WCHAR
));
if
(
!
size
)
return
GetLastError
();
full_name
=
heap_alloc
(
size
*
sizeof
(
WCHAR
));
if
(
!
full_name
)
return
ERROR_NOT_ENOUGH_MEMORY
;
GetFullPathNameW
(
file_name
,
size
,
full_name
,
NULL
);
EnterCriticalSection
(
&
reg_mui_cs
);
...
...
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