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
e00d864a
Commit
e00d864a
authored
Apr 16, 2009
by
Nicolas Le Cam
Committed by
Alexandre Julliard
Apr 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix buffer length value returned by MSI_RecordGetStringW on null and empty strings.
parent
edac581d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
record.c
dlls/msi/record.c
+0
-1
record.c
dlls/msi/tests/record.c
+0
-2
No files found.
dlls/msi/record.c
View file @
e00d864a
...
...
@@ -444,7 +444,6 @@ UINT MSI_RecordGetStringW(MSIRECORD *rec, UINT iField,
lstrcpynW
(
szValue
,
rec
->
fields
[
iField
].
u
.
szwVal
,
*
pcchValue
);
break
;
case
MSIFIELD_NULL
:
len
=
1
;
if
(
szValue
&&
*
pcchValue
>
0
)
szValue
[
0
]
=
0
;
default:
...
...
dlls/msi/tests/record.c
View file @
e00d864a
...
...
@@ -140,7 +140,6 @@ static void test_msirecord(void)
r
=
MsiRecordGetStringW
(
h
,
0
,
bufW
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to get string at 0
\n
"
);
ok
(
bufW
[
0
]
==
0
,
"MsiRecordGetStringW returned the wrong string
\n
"
);
todo_wine
ok
(
sz
==
0
,
"MsiRecordGetStringW returned the wrong length
\n
"
);
r
=
MsiRecordSetString
(
h
,
0
,
""
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to set empty string at 0
\n
"
);
...
...
@@ -159,7 +158,6 @@ static void test_msirecord(void)
r
=
MsiRecordGetStringW
(
h
,
0
,
bufW
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"Failed to get string at 0
\n
"
);
ok
(
bufW
[
0
]
==
0
,
"MsiRecordGetStringW returned the wrong string
\n
"
);
todo_wine
ok
(
sz
==
0
,
"MsiRecordGetStringW returned the wrong length
\n
"
);
/* same record, but add a string to it */
...
...
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