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
06a43815
Commit
06a43815
authored
Dec 09, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Dec 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Forward MsiGetProductPropertyA to MsiGetProductPropertyW.
parent
61c94d28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
4 deletions
+59
-4
msi.c
dlls/msi/msi.c
+59
-4
No files found.
dlls/msi/msi.c
View file @
06a43815
...
...
@@ -1700,11 +1700,66 @@ HRESULT WINAPI MsiGetFileSignatureInformationW( LPCWSTR szSignedObjectPath,
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
UINT
WINAPI
MsiGetProductPropertyA
(
MSIHANDLE
hProduct
,
LPCSTR
szProperty
,
LPSTR
szValue
,
LPDWORD
pccbValue
)
/******************************************************************
* MsiGetProductPropertyA [MSI.@]
*/
UINT
WINAPI
MsiGetProductPropertyA
(
MSIHANDLE
hProduct
,
LPCSTR
szProperty
,
LPSTR
szValue
,
LPDWORD
pccbValue
)
{
FIXME
(
"%ld %s %p %p
\n
"
,
hProduct
,
debugstr_a
(
szProperty
),
szValue
,
pccbValue
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
LPWSTR
prop
=
NULL
,
val
=
NULL
;
DWORD
len
;
UINT
r
;
TRACE
(
"(%ld, %s, %p, %p)
\n
"
,
hProduct
,
debugstr_a
(
szProperty
),
szValue
,
pccbValue
);
if
(
szValue
&&
!
pccbValue
)
return
ERROR_INVALID_PARAMETER
;
if
(
szProperty
)
prop
=
strdupAtoW
(
szProperty
);
len
=
0
;
r
=
MsiGetProductPropertyW
(
hProduct
,
prop
,
NULL
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
&&
r
!=
ERROR_MORE_DATA
)
goto
done
;
if
(
r
==
ERROR_SUCCESS
)
{
if
(
szValue
)
*
szValue
=
'\0'
;
if
(
pccbValue
)
*
pccbValue
=
0
;
goto
done
;
}
val
=
msi_alloc
(
++
len
*
sizeof
(
WCHAR
));
if
(
!
val
)
{
r
=
ERROR_OUTOFMEMORY
;
goto
done
;
}
r
=
MsiGetProductPropertyW
(
hProduct
,
prop
,
val
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
val
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
szValue
)
WideCharToMultiByte
(
CP_ACP
,
0
,
val
,
-
1
,
szValue
,
*
pccbValue
,
NULL
,
NULL
);
if
(
pccbValue
)
{
if
(
len
>
*
pccbValue
)
r
=
ERROR_MORE_DATA
;
*
pccbValue
=
len
-
1
;
}
done:
msi_free
(
prop
);
msi_free
(
val
);
return
r
;
}
UINT
WINAPI
MsiGetProductPropertyW
(
MSIHANDLE
hProduct
,
LPCWSTR
szProperty
,
...
...
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