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
34400353
Commit
34400353
authored
Feb 09, 2005
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Feb 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle 0 length buffers in MSI_FormatRecordW.
Remove unused buffer in deformat_string.
parent
7acd3639
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
action.c
dlls/msi/action.c
+1
-2
format.c
dlls/msi/format.c
+5
-2
No files found.
dlls/msi/action.c
View file @
34400353
...
...
@@ -518,10 +518,9 @@ DWORD deformat_string(MSIPACKAGE *package, LPCWSTR ptr, WCHAR** data )
{
MSIRECORD
*
rec
=
MSI_CreateRecord
(
1
);
DWORD
size
=
0
;
WCHAR
size_buf
[
2
]
=
{
' '
,
0
};
MSI_RecordSetStringW
(
rec
,
0
,
ptr
);
MSI_FormatRecordW
(
package
,
rec
,
size_buf
,
&
size
);
MSI_FormatRecordW
(
package
,
rec
,
NULL
,
&
size
);
if
(
size
>=
0
)
{
size
++
;
...
...
dlls/msi/format.c
View file @
34400353
...
...
@@ -451,9 +451,12 @@ UINT MSI_FormatRecordW( MSIPACKAGE* package, MSIRECORD* record, LPWSTR buffer,
}
else
{
memcpy
(
buffer
,
deformated
,(
*
size
)
*
sizeof
(
WCHAR
));
if
(
*
size
>
0
)
{
memcpy
(
buffer
,
deformated
,(
*
size
)
*
sizeof
(
WCHAR
));
buffer
[(
*
size
)
-
1
]
=
0
;
}
rc
=
ERROR_MORE_DATA
;
buffer
[(
*
size
)
-
1
]
=
0
;
}
}
else
...
...
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