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
62cd1e03
Commit
62cd1e03
authored
Dec 22, 2004
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Blank the property buffers even if the property is not found.
parent
fa384f6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
package.c
dlls/msi/package.c
+10
-0
No files found.
dlls/msi/package.c
View file @
62cd1e03
...
...
@@ -768,6 +768,10 @@ UINT MSI_GetPropertyW(MSIPACKAGE *package, LPCWSTR szName,
UINT
rc
;
rc
=
MSI_GetPropertyRow
(
package
,
szName
,
&
row
);
if
(
*
pchValueBuf
>
0
)
szValueBuf
[
0
]
=
0
;
if
(
rc
==
ERROR_SUCCESS
)
{
rc
=
MSI_RecordGetStringW
(
row
,
1
,
szValueBuf
,
pchValueBuf
);
...
...
@@ -796,6 +800,9 @@ UINT MSI_GetPropertyA(MSIPACKAGE *package, LPCSTR szName,
UINT
rc
,
len
;
LPWSTR
szwName
;
if
(
*
pchValueBuf
>
0
)
szValueBuf
[
0
]
=
0
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
szName
,
-
1
,
NULL
,
0
);
szwName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
);
if
(
!
szwName
)
...
...
@@ -812,6 +819,9 @@ UINT MSI_GetPropertyA(MSIPACKAGE *package, LPCSTR szName,
if
(
rc
==
ERROR_SUCCESS
)
TRACE
(
"returning %s for property %s
\n
"
,
debugstr_a
(
szValueBuf
),
debugstr_a
(
szName
));
else
if
(
rc
==
ERROR_MORE_DATA
)
TRACE
(
"need %ld sized buffer for %s
\n
"
,
*
pchValueBuf
,
debugstr_a
(
szName
));
else
{
*
pchValueBuf
=
0
;
...
...
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