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
10be16f3
Commit
10be16f3
authored
Feb 19, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Feb 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Add tests for MsiSourceListSetInfo.
parent
1fa0e443
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
3 deletions
+38
-3
msi.spec
dlls/msi/msi.spec
+1
-1
source.c
dlls/msi/source.c
+36
-1
automation.c
dlls/msi/tests/automation.c
+1
-1
source.c
dlls/msi/tests/source.c
+0
-0
No files found.
dlls/msi/msi.spec
View file @
10be16f3
...
...
@@ -260,7 +260,7 @@
264 stub MsiSourceListEnumSourcesW
265 stdcall MsiSourceListGetInfoA(str str long long str ptr ptr)
266 stdcall MsiSourceListGetInfoW(wstr wstr long long wstr ptr ptr)
267 st
ub MsiSourceListSetInfoA
267 st
dcall MsiSourceListSetInfoA(str str long long str str)
268 stdcall MsiSourceListSetInfoW(wstr wstr long long wstr wstr)
269 stub MsiEnumPatchesExA
270 stub MsiEnumPatchesExW
...
...
dlls/msi/source.c
View file @
10be16f3
...
...
@@ -359,6 +359,35 @@ UINT WINAPI MsiSourceListGetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
}
/******************************************************************
* MsiSourceListSetInfoA (MSI.@)
*/
UINT
WINAPI
MsiSourceListSetInfoA
(
LPCSTR
szProduct
,
LPCSTR
szUserSid
,
MSIINSTALLCONTEXT
dwContext
,
DWORD
dwOptions
,
LPCSTR
szProperty
,
LPCSTR
szValue
)
{
UINT
ret
;
LPWSTR
product
=
NULL
;
LPWSTR
usersid
=
NULL
;
LPWSTR
property
=
NULL
;
LPWSTR
value
=
NULL
;
if
(
szProduct
)
product
=
strdupAtoW
(
szProduct
);
if
(
szUserSid
)
usersid
=
strdupAtoW
(
szUserSid
);
if
(
szProperty
)
property
=
strdupAtoW
(
szProperty
);
if
(
szValue
)
value
=
strdupAtoW
(
szValue
);
ret
=
MsiSourceListSetInfoW
(
product
,
usersid
,
dwContext
,
dwOptions
,
property
,
value
);
msi_free
(
product
);
msi_free
(
usersid
);
msi_free
(
property
);
msi_free
(
value
);
return
ret
;
}
/******************************************************************
* MsiSourceListSetInfoW (MSI.@)
*/
UINT
WINAPI
MsiSourceListSetInfoW
(
LPCWSTR
szProduct
,
LPCWSTR
szUserSid
,
...
...
@@ -374,6 +403,12 @@ UINT WINAPI MsiSourceListSetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
if
(
!
szProduct
||
lstrlenW
(
szProduct
)
>
39
)
return
ERROR_INVALID_PARAMETER
;
if
(
!
szProperty
)
return
ERROR_INVALID_PARAMETER
;
if
(
!
szValue
)
return
ERROR_UNKNOWN_PROPERTY
;
if
(
dwOptions
&
MSICODE_PATCH
)
{
FIXME
(
"Unhandled options MSICODE_PATCH
\n
"
);
...
...
@@ -386,7 +421,7 @@ UINT WINAPI MsiSourceListSetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
if
(
dwContext
==
MSIINSTALLCONTEXT_USERUNMANAGED
)
FIXME
(
"Unknown context MSIINSTALLCONTEXT_USERUNMANAGED
\n
"
);
rc
=
OpenSourceKey
(
szProduct
,
&
sourcekey
,
MSICODE_PRODUCT
,
dwContext
,
TRU
E
);
rc
=
OpenSourceKey
(
szProduct
,
&
sourcekey
,
MSICODE_PRODUCT
,
dwContext
,
FALS
E
);
if
(
rc
!=
ERROR_SUCCESS
)
return
ERROR_UNKNOWN_PRODUCT
;
...
...
dlls/msi/tests/automation.c
View file @
10be16f3
...
...
@@ -2139,7 +2139,7 @@ static void test_Installer_InstallProduct(void)
/* Package name */
memset
(
szString
,
0
,
sizeof
(
szString
));
hr
=
Installer_ProductInfo
(
szProductCode
,
WINE_INSTALLPROPERTY_PACKAGENAMEW
,
szString
);
ok
(
hr
==
S_OK
,
"Installer_ProductInfo failed, hresult 0x%08x
\n
"
,
hr
);
todo_wine
ok
(
hr
==
S_OK
,
"Installer_ProductInfo failed, hresult 0x%08x
\n
"
,
hr
);
todo_wine
ok_w2
(
"Installer_ProductInfo returned %s but expected %s
\n
"
,
szString
,
szMsifile
);
/* Product name */
...
...
dlls/msi/tests/source.c
View file @
10be16f3
This diff is collapsed.
Click to expand 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