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
f0b685d5
Commit
f0b685d5
authored
Jan 31, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Feb 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msacm32: Add missing HeapALloc failure checks (Coverity).
parent
102a3b98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
internal.c
dlls/msacm32/internal.c
+11
-0
No files found.
dlls/msacm32/internal.c
View file @
f0b685d5
...
...
@@ -289,18 +289,29 @@ PWINE_ACMDRIVERID MSACM_RegisterDriver(LPCWSTR pszDriverAlias, LPCWSTR pszFileNa
debugstr_w
(
pszDriverAlias
),
debugstr_w
(
pszFileName
),
pLocalDriver
);
padid
=
HeapAlloc
(
MSACM_hHeap
,
0
,
sizeof
(
WINE_ACMDRIVERID
));
if
(
!
padid
)
return
NULL
;
padid
->
obj
.
dwType
=
WINE_ACMOBJ_DRIVERID
;
padid
->
obj
.
pACMDriverID
=
padid
;
padid
->
pszDriverAlias
=
NULL
;
if
(
pszDriverAlias
)
{
padid
->
pszDriverAlias
=
HeapAlloc
(
MSACM_hHeap
,
0
,
(
strlenW
(
pszDriverAlias
)
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
!
padid
->
pszDriverAlias
)
{
HeapFree
(
MSACM_hHeap
,
0
,
padid
);
return
NULL
;
}
strcpyW
(
padid
->
pszDriverAlias
,
pszDriverAlias
);
}
padid
->
pszFileName
=
NULL
;
if
(
pszFileName
)
{
padid
->
pszFileName
=
HeapAlloc
(
MSACM_hHeap
,
0
,
(
strlenW
(
pszFileName
)
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
!
padid
->
pszFileName
)
{
HeapFree
(
MSACM_hHeap
,
0
,
padid
->
pszDriverAlias
);
HeapFree
(
MSACM_hHeap
,
0
,
padid
);
return
NULL
;
}
strcpyW
(
padid
->
pszFileName
,
pszFileName
);
}
padid
->
pLocalDriver
=
pLocalDriver
;
...
...
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