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
4de8247c
Commit
4de8247c
authored
Jul 02, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jul 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Handle remote calls to MsiGetProperty.
parent
e4658e05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
2 deletions
+45
-2
package.c
dlls/msi/package.c
+45
-2
No files found.
dlls/msi/package.c
View file @
4de8247c
...
@@ -1343,7 +1343,7 @@ static UINT MSI_GetProperty( MSIHANDLE handle, LPCWSTR name,
...
@@ -1343,7 +1343,7 @@ static UINT MSI_GetProperty( MSIHANDLE handle, LPCWSTR name,
static
const
WCHAR
empty
[]
=
{
0
};
static
const
WCHAR
empty
[]
=
{
0
};
MSIPACKAGE
*
package
;
MSIPACKAGE
*
package
;
MSIRECORD
*
row
=
NULL
;
MSIRECORD
*
row
=
NULL
;
UINT
r
;
UINT
r
=
ERROR_FUNCTION_FAILED
;
LPCWSTR
val
=
NULL
;
LPCWSTR
val
=
NULL
;
TRACE
(
"%lu %s %p %p
\n
"
,
handle
,
debugstr_w
(
name
),
TRACE
(
"%lu %s %p %p
\n
"
,
handle
,
debugstr_w
(
name
),
...
@@ -1354,7 +1354,50 @@ static UINT MSI_GetProperty( MSIHANDLE handle, LPCWSTR name,
...
@@ -1354,7 +1354,50 @@ static UINT MSI_GetProperty( MSIHANDLE handle, LPCWSTR name,
package
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_PACKAGE
);
package
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
if
(
!
package
)
return
ERROR_INVALID_HANDLE
;
{
HRESULT
hr
;
IWineMsiRemotePackage
*
remote_package
;
LPWSTR
value
=
NULL
;
DWORD
len
;
remote_package
=
(
IWineMsiRemotePackage
*
)
msi_get_remote
(
handle
);
if
(
!
remote_package
)
return
ERROR_INVALID_HANDLE
;
len
=
0
;
hr
=
IWineMsiRemotePackage_GetProperty
(
remote_package
,
(
BSTR
*
)
name
,
NULL
,
&
len
);
if
(
FAILED
(
hr
))
goto
done
;
len
++
;
value
=
msi_alloc
(
len
*
sizeof
(
WCHAR
));
if
(
!
value
)
{
r
=
ERROR_OUTOFMEMORY
;
goto
done
;
}
hr
=
IWineMsiRemotePackage_GetProperty
(
remote_package
,
(
BSTR
*
)
name
,
(
BSTR
*
)
value
,
&
len
);
if
(
FAILED
(
hr
))
goto
done
;
r
=
msi_strcpy_to_awstring
(
value
,
szValueBuf
,
pchValueBuf
);
*
pchValueBuf
*=
sizeof
(
WCHAR
);
/* Bug required by Adobe installers */
done:
IWineMsiRemotePackage_Release
(
remote_package
);
msi_free
(
value
);
if
(
FAILED
(
hr
))
{
if
(
HRESULT_FACILITY
(
hr
)
==
FACILITY_WIN32
)
return
HRESULT_CODE
(
hr
);
return
ERROR_FUNCTION_FAILED
;
}
return
r
;
}
row
=
MSI_GetPropertyRow
(
package
,
name
);
row
=
MSI_GetPropertyRow
(
package
,
name
);
if
(
row
)
if
(
row
)
...
...
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