Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
90bc168c
Commit
90bc168c
authored
Jun 07, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct a crash if the length buffer is NULL.
parent
fbc7a402
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
msi.c
dlls/msi/msi.c
+6
-1
No files found.
dlls/msi/msi.c
View file @
90bc168c
...
@@ -971,11 +971,16 @@ INSTALLSTATE WINAPI MsiGetComponentPathA(LPCSTR szProduct, LPCSTR szComponent,
...
@@ -971,11 +971,16 @@ INSTALLSTATE WINAPI MsiGetComponentPathA(LPCSTR szProduct, LPCSTR szComponent,
}
}
if
(
pcchBuf
&&
*
pcchBuf
>
0
)
if
(
pcchBuf
&&
*
pcchBuf
>
0
)
{
lpwPathBuf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
*
pcchBuf
*
sizeof
(
WCHAR
));
lpwPathBuf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
*
pcchBuf
*
sizeof
(
WCHAR
));
incoming_len
=
*
pcchBuf
;
}
else
else
{
lpwPathBuf
=
NULL
;
lpwPathBuf
=
NULL
;
incoming_len
=
0
;
}
incoming_len
=
*
pcchBuf
;
rc
=
MsiGetComponentPathW
(
szwProduct
,
szwComponent
,
lpwPathBuf
,
pcchBuf
);
rc
=
MsiGetComponentPathW
(
szwProduct
,
szwComponent
,
lpwPathBuf
,
pcchBuf
);
HeapFree
(
GetProcessHeap
(),
0
,
szwProduct
);
HeapFree
(
GetProcessHeap
(),
0
,
szwProduct
);
...
...
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