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
5f2e81e2
Commit
5f2e81e2
authored
May 14, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: automation: Installer::Products, verify HeapAlloc return value.
parent
536b4990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
automation.c
dlls/msi/automation.c
+9
-5
No files found.
dlls/msi/automation.c
View file @
5f2e81e2
...
...
@@ -1386,12 +1386,16 @@ static HRESULT WINAPI InstallerImpl_Invoke(
/* Save product strings */
sldata
=
(
StringListData
*
)
private_data
((
AutomationObject
*
)
pDispatch
);
sldata
->
iCount
=
idx
;
sldata
->
pszStrings
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
LPWSTR
)
*
sldata
->
iCount
);
for
(
idx
=
0
;
idx
<
sldata
->
iCount
;
idx
++
)
if
(
!
(
sldata
->
pszStrings
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
LPWSTR
)
*
sldata
->
iCount
)))
ERR
(
"Out of memory
\n
"
);
else
{
ret
=
MsiEnumProductsW
(
idx
,
szProductBuf
);
sldata
->
pszStrings
[
idx
]
=
SysAllocString
(
szProductBuf
);
sldata
->
iCount
=
idx
;
for
(
idx
=
0
;
idx
<
sldata
->
iCount
;
idx
++
)
{
ret
=
MsiEnumProductsW
(
idx
,
szProductBuf
);
sldata
->
pszStrings
[
idx
]
=
SysAllocString
(
szProductBuf
);
}
}
}
else
...
...
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