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
a32fcfa9
Commit
a32fcfa9
authored
Dec 08, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Dec 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Forward MsiEnumPatchesExA to MsiEnumPatchesExW.
parent
43499b9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
2 deletions
+66
-2
registry.c
dlls/msi/registry.c
+66
-2
No files found.
dlls/msi/registry.c
View file @
a32fcfa9
...
...
@@ -1656,11 +1656,75 @@ UINT WINAPI MsiEnumPatchesExA(LPCSTR szProductCode, LPCSTR szUserSid,
LPSTR
szTargetProductCode
,
MSIINSTALLCONTEXT
*
pdwTargetProductContext
,
LPSTR
szTargetUserSid
,
LPDWORD
pcchTargetUserSid
)
{
FIXME
(
"(%s, %s, %d, %d, %d, %p, %p, %p, %p, %p) stub!
\n
"
,
LPWSTR
prodcode
=
NULL
;
LPWSTR
usersid
=
NULL
;
LPWSTR
targsid
=
NULL
;
WCHAR
patch
[
GUID_SIZE
];
WCHAR
targprod
[
GUID_SIZE
];
DWORD
len
;
UINT
r
;
TRACE
(
"(%s, %s, %d, %d, %d, %p, %p, %p, %p, %p)
\n
"
,
debugstr_a
(
szProductCode
),
debugstr_a
(
szUserSid
),
dwContext
,
dwFilter
,
dwIndex
,
szPatchCode
,
szTargetProductCode
,
pdwTargetProductContext
,
szTargetUserSid
,
pcchTargetUserSid
);
return
ERROR_NO_MORE_ITEMS
;
if
(
szTargetUserSid
&&
!
pcchTargetUserSid
)
return
ERROR_INVALID_PARAMETER
;
if
(
szProductCode
)
prodcode
=
strdupAtoW
(
szProductCode
);
if
(
szUserSid
)
usersid
=
strdupAtoW
(
szUserSid
);
r
=
MsiEnumPatchesExW
(
prodcode
,
usersid
,
dwContext
,
dwFilter
,
dwIndex
,
patch
,
targprod
,
pdwTargetProductContext
,
NULL
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
WideCharToMultiByte
(
CP_ACP
,
0
,
patch
,
-
1
,
szPatchCode
,
GUID_SIZE
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
targprod
,
-
1
,
szTargetProductCode
,
GUID_SIZE
,
NULL
,
NULL
);
if
(
!
szTargetUserSid
)
{
if
(
pcchTargetUserSid
)
*
pcchTargetUserSid
=
len
;
goto
done
;
}
targsid
=
msi_alloc
(
++
len
*
sizeof
(
WCHAR
));
if
(
!
targsid
)
{
r
=
ERROR_OUTOFMEMORY
;
goto
done
;
}
r
=
MsiEnumPatchesExW
(
prodcode
,
usersid
,
dwContext
,
dwFilter
,
dwIndex
,
patch
,
targprod
,
pdwTargetProductContext
,
targsid
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
||
!
szTargetUserSid
)
goto
done
;
WideCharToMultiByte
(
CP_ACP
,
0
,
targsid
,
-
1
,
szTargetUserSid
,
*
pcchTargetUserSid
,
NULL
,
NULL
);
len
=
lstrlenW
(
targsid
);
if
(
*
pcchTargetUserSid
<
len
+
1
)
{
r
=
ERROR_MORE_DATA
;
*
pcchTargetUserSid
=
len
*
sizeof
(
WCHAR
);
}
else
*
pcchTargetUserSid
=
len
;
done:
msi_free
(
prodcode
);
msi_free
(
usersid
);
msi_free
(
targsid
);
return
r
;
}
/***********************************************************************
...
...
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