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
c2d66da6
Commit
c2d66da6
authored
Sep 17, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Don't crash if record has no fields.
parent
46e2d795
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
format.c
dlls/msi/format.c
+2
-2
format.c
dlls/msi/tests/format.c
+11
-0
No files found.
dlls/msi/format.c
View file @
c2d66da6
...
...
@@ -626,8 +626,8 @@ UINT MSI_FormatRecordW( MSIPACKAGE* package, MSIRECORD* record, LPWSTR buffer,
TRACE
(
"(%s)
\n
"
,
debugstr_w
(
rec
));
len
=
deformat_string_internal
(
package
,
rec
,
&
deformated
,
strlenW
(
rec
),
record
,
NULL
);
len
=
deformat_string_internal
(
package
,
rec
,
&
deformated
,
rec
?
strlenW
(
rec
)
:
0
,
rec
ord
,
NULL
);
if
(
buffer
)
{
...
...
dlls/msi/tests/format.c
View file @
c2d66da6
...
...
@@ -388,6 +388,17 @@ static void test_formatrecord(void)
r
=
MsiFormatRecord
(
0
,
0
,
NULL
,
NULL
);
ok
(
r
==
ERROR_INVALID_HANDLE
,
"wrong error
\n
"
);
hrec
=
MsiCreateRecord
(
0
);
ok
(
hrec
,
"failed to create record
\n
"
);
/* format an empty record on a record with no parameters */
sz
=
sizeof
(
buffer
);
r
=
MsiFormatRecordA
(
0
,
hrec
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"format failed
\n
"
);
ok
(
sz
==
0
,
"size wrong
\n
"
);
MsiCloseHandle
(
hrec
);
hrec
=
MsiCreateRecord
(
4
);
ok
(
hrec
,
"failed to create record
\n
"
);
...
...
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