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
d195ee3c
Commit
d195ee3c
authored
Dec 14, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Dec 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Forward MsiGetPatchInfoExA to MsiGetPatchInfoExW.
parent
199a26c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
2 deletions
+58
-2
msi.c
dlls/msi/msi.c
+58
-2
No files found.
dlls/msi/msi.c
View file @
d195ee3c
...
...
@@ -1194,11 +1194,67 @@ UINT WINAPI MsiGetPatchInfoExA(LPCSTR szPatchCode, LPCSTR szProductCode,
LPCSTR
szUserSid
,
MSIINSTALLCONTEXT
dwContext
,
LPCSTR
szProperty
,
LPSTR
lpValue
,
DWORD
*
pcchValue
)
{
FIXME
(
"(%s, %s, %s, %d, %s, %p, %p): stub!
\n
"
,
debugstr_a
(
szPatchCode
),
LPWSTR
patch
=
NULL
,
product
=
NULL
,
usersid
=
NULL
;
LPWSTR
property
=
NULL
,
val
=
NULL
;
DWORD
len
;
UINT
r
;
TRACE
(
"(%s, %s, %s, %d, %s, %p, %p)
\n
"
,
debugstr_a
(
szPatchCode
),
debugstr_a
(
szProductCode
),
debugstr_a
(
szUserSid
),
dwContext
,
debugstr_a
(
szProperty
),
lpValue
,
pcchValue
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
if
(
lpValue
&&
!
pcchValue
)
return
ERROR_INVALID_PARAMETER
;
if
(
szPatchCode
)
patch
=
strdupAtoW
(
szPatchCode
);
if
(
szProductCode
)
product
=
strdupAtoW
(
szProductCode
);
if
(
szUserSid
)
usersid
=
strdupAtoW
(
szUserSid
);
if
(
szProperty
)
property
=
strdupAtoW
(
szProperty
);
len
=
0
;
r
=
MsiGetPatchInfoExW
(
patch
,
product
,
usersid
,
dwContext
,
property
,
NULL
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
val
=
msi_alloc
(
++
len
*
sizeof
(
WCHAR
));
if
(
!
val
)
{
r
=
ERROR_OUTOFMEMORY
;
goto
done
;
}
r
=
MsiGetPatchInfoExW
(
patch
,
product
,
usersid
,
dwContext
,
property
,
val
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
||
!
pcchValue
)
goto
done
;
if
(
lpValue
)
WideCharToMultiByte
(
CP_ACP
,
0
,
val
,
-
1
,
lpValue
,
*
pcchValue
-
1
,
NULL
,
NULL
);
len
=
lstrlenW
(
val
);
if
((
*
val
&&
*
pcchValue
<
len
+
1
)
||
!
lpValue
)
{
if
(
lpValue
)
{
r
=
ERROR_MORE_DATA
;
lpValue
[
*
pcchValue
-
1
]
=
'\0'
;
}
*
pcchValue
=
len
*
sizeof
(
WCHAR
);
}
else
*
pcchValue
=
len
;
done:
msi_free
(
val
);
msi_free
(
patch
);
msi_free
(
product
);
msi_free
(
usersid
);
msi_free
(
property
);
return
r
;
}
UINT
WINAPI
MsiGetPatchInfoExW
(
LPCWSTR
szPatchCode
,
LPCWSTR
szProductCode
,
...
...
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