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
5c6de795
Commit
5c6de795
authored
Mar 12, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Convert IWineMsiRemoteDatabase BSTR parameters to LPCWSTR to avoid typecast.
parent
bc87dd60
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
database.c
dlls/msi/database.c
+3
-3
msiquery.c
dlls/msi/msiquery.c
+3
-3
msiserver.idl
dlls/msi/msiserver.idl
+3
-3
No files found.
dlls/msi/database.c
View file @
5c6de795
...
@@ -2057,7 +2057,7 @@ static ULONG WINAPI mrd_Release( IWineMsiRemoteDatabase *iface )
...
@@ -2057,7 +2057,7 @@ static ULONG WINAPI mrd_Release( IWineMsiRemoteDatabase *iface )
}
}
static
HRESULT
WINAPI
mrd_IsTablePersistent
(
IWineMsiRemoteDatabase
*
iface
,
static
HRESULT
WINAPI
mrd_IsTablePersistent
(
IWineMsiRemoteDatabase
*
iface
,
B
STR
table
,
MSICONDITION
*
persistent
)
LPCW
STR
table
,
MSICONDITION
*
persistent
)
{
{
msi_remote_database_impl
*
This
=
mrd_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
mrd_from_IWineMsiRemoteDatabase
(
iface
);
*
persistent
=
MsiDatabaseIsTablePersistentW
(
This
->
database
,
table
);
*
persistent
=
MsiDatabaseIsTablePersistentW
(
This
->
database
,
table
);
...
@@ -2065,7 +2065,7 @@ static HRESULT WINAPI mrd_IsTablePersistent( IWineMsiRemoteDatabase *iface,
...
@@ -2065,7 +2065,7 @@ static HRESULT WINAPI mrd_IsTablePersistent( IWineMsiRemoteDatabase *iface,
}
}
static
HRESULT
WINAPI
mrd_GetPrimaryKeys
(
IWineMsiRemoteDatabase
*
iface
,
static
HRESULT
WINAPI
mrd_GetPrimaryKeys
(
IWineMsiRemoteDatabase
*
iface
,
B
STR
table
,
MSIHANDLE
*
keys
)
LPCW
STR
table
,
MSIHANDLE
*
keys
)
{
{
msi_remote_database_impl
*
This
=
mrd_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
mrd_from_IWineMsiRemoteDatabase
(
iface
);
UINT
r
=
MsiDatabaseGetPrimaryKeysW
(
This
->
database
,
table
,
keys
);
UINT
r
=
MsiDatabaseGetPrimaryKeysW
(
This
->
database
,
table
,
keys
);
...
@@ -2081,7 +2081,7 @@ static HRESULT WINAPI mrd_GetSummaryInformation( IWineMsiRemoteDatabase *iface,
...
@@ -2081,7 +2081,7 @@ static HRESULT WINAPI mrd_GetSummaryInformation( IWineMsiRemoteDatabase *iface,
}
}
static
HRESULT
WINAPI
mrd_OpenView
(
IWineMsiRemoteDatabase
*
iface
,
static
HRESULT
WINAPI
mrd_OpenView
(
IWineMsiRemoteDatabase
*
iface
,
B
STR
query
,
MSIHANDLE
*
view
)
LPCW
STR
query
,
MSIHANDLE
*
view
)
{
{
msi_remote_database_impl
*
This
=
mrd_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
mrd_from_IWineMsiRemoteDatabase
(
iface
);
UINT
r
=
MsiDatabaseOpenViewW
(
This
->
database
,
query
,
view
);
UINT
r
=
MsiDatabaseOpenViewW
(
This
->
database
,
query
,
view
);
...
...
dlls/msi/msiquery.c
View file @
5c6de795
...
@@ -262,7 +262,7 @@ UINT WINAPI MsiDatabaseOpenViewW(MSIHANDLE hdb,
...
@@ -262,7 +262,7 @@ UINT WINAPI MsiDatabaseOpenViewW(MSIHANDLE hdb,
if
(
!
remote_database
)
if
(
!
remote_database
)
return
ERROR_INVALID_HANDLE
;
return
ERROR_INVALID_HANDLE
;
hr
=
IWineMsiRemoteDatabase_OpenView
(
remote_database
,
(
BSTR
)
szQuery
,
phView
);
hr
=
IWineMsiRemoteDatabase_OpenView
(
remote_database
,
szQuery
,
phView
);
IWineMsiRemoteDatabase_Release
(
remote_database
);
IWineMsiRemoteDatabase_Release
(
remote_database
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
...
@@ -943,7 +943,7 @@ UINT WINAPI MsiDatabaseGetPrimaryKeysW( MSIHANDLE hdb,
...
@@ -943,7 +943,7 @@ UINT WINAPI MsiDatabaseGetPrimaryKeysW( MSIHANDLE hdb,
if
(
!
remote_database
)
if
(
!
remote_database
)
return
ERROR_INVALID_HANDLE
;
return
ERROR_INVALID_HANDLE
;
hr
=
IWineMsiRemoteDatabase_GetPrimaryKeys
(
remote_database
,
(
BSTR
)
table
,
phRec
);
hr
=
IWineMsiRemoteDatabase_GetPrimaryKeys
(
remote_database
,
table
,
phRec
);
IWineMsiRemoteDatabase_Release
(
remote_database
);
IWineMsiRemoteDatabase_Release
(
remote_database
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
...
@@ -1030,7 +1030,7 @@ MSICONDITION WINAPI MsiDatabaseIsTablePersistentW(
...
@@ -1030,7 +1030,7 @@ MSICONDITION WINAPI MsiDatabaseIsTablePersistentW(
return
MSICONDITION_ERROR
;
return
MSICONDITION_ERROR
;
hr
=
IWineMsiRemoteDatabase_IsTablePersistent
(
remote_database
,
hr
=
IWineMsiRemoteDatabase_IsTablePersistent
(
remote_database
,
(
BSTR
)
szTableName
,
&
condition
);
szTableName
,
&
condition
);
IWineMsiRemoteDatabase_Release
(
remote_database
);
IWineMsiRemoteDatabase_Release
(
remote_database
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
...
...
dlls/msi/msiserver.idl
View file @
5c6de795
...
@@ -38,10 +38,10 @@ cpp_quote("#endif")
...
@@ -38,10 +38,10 @@ cpp_quote("#endif")
]
]
interface
IWineMsiRemoteDatabase
:
IUnknown
interface
IWineMsiRemoteDatabase
:
IUnknown
{
{
HRESULT
IsTablePersistent
(
[
in
]
B
STR
table
,
[
out
]
MSICONDITION
*
persistent
)
;
HRESULT
IsTablePersistent
(
[
in
]
LPCW
STR
table
,
[
out
]
MSICONDITION
*
persistent
)
;
HRESULT
GetPrimaryKeys
(
[
in
]
B
STR
table
,
[
out
]
MSIHANDLE
*
keys
)
;
HRESULT
GetPrimaryKeys
(
[
in
]
LPCW
STR
table
,
[
out
]
MSIHANDLE
*
keys
)
;
HRESULT
GetSummaryInformation
(
[
in
]
UINT
updatecount
,
[
out
]
MSIHANDLE
*
suminfo
)
;
HRESULT
GetSummaryInformation
(
[
in
]
UINT
updatecount
,
[
out
]
MSIHANDLE
*
suminfo
)
;
HRESULT
OpenView
(
[
in
]
B
STR
query
,
[
out
]
MSIHANDLE
*
view
)
;
HRESULT
OpenView
(
[
in
]
LPCW
STR
query
,
[
out
]
MSIHANDLE
*
view
)
;
HRESULT
SetMsiHandle
(
[
in
]
MSIHANDLE
handle
)
;
HRESULT
SetMsiHandle
(
[
in
]
MSIHANDLE
handle
)
;
}
}
...
...
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