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
c46f2102
Commit
c46f2102
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 MsiEnumPatchesA to MsiEnumPatchesW.
parent
a9e02909
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
4 deletions
+53
-4
registry.c
dlls/msi/registry.c
+53
-4
No files found.
dlls/msi/registry.c
View file @
c46f2102
...
...
@@ -1952,12 +1952,61 @@ done:
/***********************************************************************
* MsiEnumPatchesA [MSI.@]
*/
UINT
WINAPI
MsiEnumPatchesA
(
LPCSTR
szProduct
,
DWORD
iPatchIndex
,
UINT
WINAPI
MsiEnumPatchesA
(
LPCSTR
szProduct
,
DWORD
iPatchIndex
,
LPSTR
lpPatchBuf
,
LPSTR
lpTransformsBuf
,
LPDWORD
pcchTransformsBuf
)
{
FIXME
(
"%s %d %p %p %p
\n
"
,
debugstr_a
(
szProduct
),
iPatchIndex
,
lpPatchBuf
,
lpTransformsBuf
,
pcchTransformsBuf
);
return
ERROR_NO_MORE_ITEMS
;
LPWSTR
product
,
transforms
=
NULL
;
WCHAR
patch
[
GUID_SIZE
];
DWORD
len
;
UINT
r
;
TRACE
(
"(%s %d %p %p %p)
\n
"
,
debugstr_a
(
szProduct
),
iPatchIndex
,
lpPatchBuf
,
lpTransformsBuf
,
pcchTransformsBuf
);
if
(
!
szProduct
||
!
lpPatchBuf
||
!
lpTransformsBuf
||
!
pcchTransformsBuf
)
return
ERROR_INVALID_PARAMETER
;
product
=
strdupAtoW
(
szProduct
);
if
(
!
product
)
return
ERROR_OUTOFMEMORY
;
len
=
0
;
r
=
MsiEnumPatchesW
(
product
,
iPatchIndex
,
patch
,
patch
,
&
len
);
if
(
r
!=
ERROR_MORE_DATA
)
goto
done
;
transforms
=
msi_alloc
(
len
);
if
(
!
transforms
)
{
r
=
ERROR_OUTOFMEMORY
;
goto
done
;
}
r
=
MsiEnumPatchesW
(
product
,
iPatchIndex
,
patch
,
transforms
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
WideCharToMultiByte
(
CP_ACP
,
0
,
patch
,
-
1
,
lpPatchBuf
,
GUID_SIZE
,
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
transforms
,
-
1
,
lpTransformsBuf
,
*
pcchTransformsBuf
-
1
,
NULL
,
NULL
);
len
=
lstrlenW
(
transforms
);
if
(
*
pcchTransformsBuf
<
len
+
1
)
{
r
=
ERROR_MORE_DATA
;
lpTransformsBuf
[
*
pcchTransformsBuf
-
1
]
=
'\0'
;
*
pcchTransformsBuf
=
len
*
sizeof
(
WCHAR
);
}
else
*
pcchTransformsBuf
=
len
;
done:
msi_free
(
transforms
);
msi_free
(
product
);
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