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
1aba0d62
Commit
1aba0d62
authored
Jul 18, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Check the right pointers for NULL.
parent
bf579105
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
msi.c
dlls/msi/msi.c
+4
-4
No files found.
dlls/msi/msi.c
View file @
1aba0d62
...
...
@@ -471,7 +471,7 @@ UINT WINAPI MSI_GetProductInfo(LPCWSTR szProduct, LPCWSTR szAttribute,
* FIXME: Values seem scattered/duplicated in the registry. Is there a system?
*/
if
((
szValue
&&
!
pcchValueBuf
)
||
!
szProduct
||
!
szAttribute
)
if
((
szValue
->
str
.
w
&&
!
pcchValueBuf
)
||
!
szProduct
||
!
szAttribute
)
return
ERROR_INVALID_PARAMETER
;
/* check for special properties */
...
...
@@ -990,11 +990,11 @@ INSTALLSTATE WINAPI MSI_GetComponentPath(LPCWSTR szProduct, LPCWSTR szComponent,
LPWSTR
path
=
NULL
;
TRACE
(
"%s %s %p %p
\n
"
,
debugstr_w
(
szProduct
),
debugstr_w
(
szComponent
),
lpPathBuf
,
pcchBuf
);
debugstr_w
(
szComponent
),
lpPathBuf
->
str
.
w
,
pcchBuf
);
if
(
!
szComponent
)
if
(
!
sz
Product
||
!
sz
Component
)
return
INSTALLSTATE_INVALIDARG
;
if
(
lpPathBuf
&&
!
pcchBuf
)
if
(
lpPathBuf
->
str
.
w
&&
!
pcchBuf
)
return
INSTALLSTATE_INVALIDARG
;
if
(
!
squash_guid
(
szProduct
,
squished_pc
)
||
...
...
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