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
367c2048
Commit
367c2048
authored
Mar 23, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Don't crash on null last parameter in MsiDecomposeDescriptor.
parent
d0856c0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
registry.c
dlls/msi/registry.c
+1
-1
db.c
dlls/msi/tests/db.c
+3
-0
No files found.
dlls/msi/registry.c
View file @
367c2048
...
...
@@ -1156,7 +1156,7 @@ UINT WINAPI MsiDecomposeDescriptorW( LPCWSTR szDescriptor, LPWSTR szProduct,
len
=
(
&
p
[
21
]
-
szDescriptor
);
TRACE
(
"length = %d
\n
"
,
len
);
*
pUsed
=
len
;
if
(
pUsed
)
*
pUsed
=
len
;
return
ERROR_SUCCESS
;
}
...
...
dlls/msi/tests/db.c
View file @
367c2048
...
...
@@ -479,6 +479,9 @@ static void test_msidecomposedesc(void)
r
=
pMsiDecomposeDescriptorA
(
NULL
,
NULL
,
NULL
,
NULL
,
&
len
);
ok
(
r
==
ERROR_INVALID_PARAMETER
,
"returned wrong error
\n
"
);
ok
(
len
==
0
,
"length wrong
\n
"
);
r
=
pMsiDecomposeDescriptorA
(
desc
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
r
==
ERROR_SUCCESS
,
"returned wrong error
\n
"
);
}
static
UINT
try_query_param
(
MSIHANDLE
hdb
,
LPCSTR
szQuery
,
MSIHANDLE
hrec
)
...
...
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