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
24ad5cb6
Commit
24ad5cb6
authored
Dec 15, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use an iface instead of a vtbl pointer in msi_remote_database_impl.
parent
b36f4010
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
database.c
dlls/msi/database.c
+11
-11
No files found.
dlls/msi/database.c
View file @
24ad5cb6
...
@@ -2038,14 +2038,14 @@ MSIDBSTATE WINAPI MsiGetDatabaseState( MSIHANDLE handle )
...
@@ -2038,14 +2038,14 @@ MSIDBSTATE WINAPI MsiGetDatabaseState( MSIHANDLE handle )
}
}
typedef
struct
_msi_remote_database_impl
{
typedef
struct
_msi_remote_database_impl
{
const
IWineMsiRemoteDatabaseVtbl
*
lpVtbl
;
IWineMsiRemoteDatabase
IWineMsiRemoteDatabase_iface
;
MSIHANDLE
database
;
MSIHANDLE
database
;
LONG
refs
;
LONG
refs
;
}
msi_remote_database_impl
;
}
msi_remote_database_impl
;
static
inline
msi_remote_database_impl
*
mrd_from_IWineMsiRemoteDatabase
(
IWineMsiRemoteDatabase
*
iface
)
static
inline
msi_remote_database_impl
*
impl_from_IWineMsiRemoteDatabase
(
IWineMsiRemoteDatabase
*
iface
)
{
{
return
(
msi_remote_database_impl
*
)
iface
;
return
CONTAINING_RECORD
(
iface
,
msi_remote_database_impl
,
IWineMsiRemoteDatabase_iface
)
;
}
}
static
HRESULT
WINAPI
mrd_QueryInterface
(
IWineMsiRemoteDatabase
*
iface
,
static
HRESULT
WINAPI
mrd_QueryInterface
(
IWineMsiRemoteDatabase
*
iface
,
...
@@ -2064,14 +2064,14 @@ static HRESULT WINAPI mrd_QueryInterface( IWineMsiRemoteDatabase *iface,
...
@@ -2064,14 +2064,14 @@ static HRESULT WINAPI mrd_QueryInterface( IWineMsiRemoteDatabase *iface,
static
ULONG
WINAPI
mrd_AddRef
(
IWineMsiRemoteDatabase
*
iface
)
static
ULONG
WINAPI
mrd_AddRef
(
IWineMsiRemoteDatabase
*
iface
)
{
{
msi_remote_database_impl
*
This
=
mrd
_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
impl
_from_IWineMsiRemoteDatabase
(
iface
);
return
InterlockedIncrement
(
&
This
->
refs
);
return
InterlockedIncrement
(
&
This
->
refs
);
}
}
static
ULONG
WINAPI
mrd_Release
(
IWineMsiRemoteDatabase
*
iface
)
static
ULONG
WINAPI
mrd_Release
(
IWineMsiRemoteDatabase
*
iface
)
{
{
msi_remote_database_impl
*
This
=
mrd
_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
impl
_from_IWineMsiRemoteDatabase
(
iface
);
ULONG
r
;
ULONG
r
;
r
=
InterlockedDecrement
(
&
This
->
refs
);
r
=
InterlockedDecrement
(
&
This
->
refs
);
...
@@ -2086,7 +2086,7 @@ static ULONG WINAPI mrd_Release( IWineMsiRemoteDatabase *iface )
...
@@ -2086,7 +2086,7 @@ static ULONG WINAPI mrd_Release( IWineMsiRemoteDatabase *iface )
static
HRESULT
WINAPI
mrd_IsTablePersistent
(
IWineMsiRemoteDatabase
*
iface
,
static
HRESULT
WINAPI
mrd_IsTablePersistent
(
IWineMsiRemoteDatabase
*
iface
,
LPCWSTR
table
,
MSICONDITION
*
persistent
)
LPCWSTR
table
,
MSICONDITION
*
persistent
)
{
{
msi_remote_database_impl
*
This
=
mrd
_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
impl
_from_IWineMsiRemoteDatabase
(
iface
);
*
persistent
=
MsiDatabaseIsTablePersistentW
(
This
->
database
,
table
);
*
persistent
=
MsiDatabaseIsTablePersistentW
(
This
->
database
,
table
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -2094,7 +2094,7 @@ static HRESULT WINAPI mrd_IsTablePersistent( IWineMsiRemoteDatabase *iface,
...
@@ -2094,7 +2094,7 @@ static HRESULT WINAPI mrd_IsTablePersistent( IWineMsiRemoteDatabase *iface,
static
HRESULT
WINAPI
mrd_GetPrimaryKeys
(
IWineMsiRemoteDatabase
*
iface
,
static
HRESULT
WINAPI
mrd_GetPrimaryKeys
(
IWineMsiRemoteDatabase
*
iface
,
LPCWSTR
table
,
MSIHANDLE
*
keys
)
LPCWSTR
table
,
MSIHANDLE
*
keys
)
{
{
msi_remote_database_impl
*
This
=
mrd
_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
impl
_from_IWineMsiRemoteDatabase
(
iface
);
UINT
r
=
MsiDatabaseGetPrimaryKeysW
(
This
->
database
,
table
,
keys
);
UINT
r
=
MsiDatabaseGetPrimaryKeysW
(
This
->
database
,
table
,
keys
);
return
HRESULT_FROM_WIN32
(
r
);
return
HRESULT_FROM_WIN32
(
r
);
}
}
...
@@ -2102,7 +2102,7 @@ static HRESULT WINAPI mrd_GetPrimaryKeys( IWineMsiRemoteDatabase *iface,
...
@@ -2102,7 +2102,7 @@ static HRESULT WINAPI mrd_GetPrimaryKeys( IWineMsiRemoteDatabase *iface,
static
HRESULT
WINAPI
mrd_GetSummaryInformation
(
IWineMsiRemoteDatabase
*
iface
,
static
HRESULT
WINAPI
mrd_GetSummaryInformation
(
IWineMsiRemoteDatabase
*
iface
,
UINT
updatecount
,
MSIHANDLE
*
suminfo
)
UINT
updatecount
,
MSIHANDLE
*
suminfo
)
{
{
msi_remote_database_impl
*
This
=
mrd
_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
impl
_from_IWineMsiRemoteDatabase
(
iface
);
UINT
r
=
MsiGetSummaryInformationW
(
This
->
database
,
NULL
,
updatecount
,
suminfo
);
UINT
r
=
MsiGetSummaryInformationW
(
This
->
database
,
NULL
,
updatecount
,
suminfo
);
return
HRESULT_FROM_WIN32
(
r
);
return
HRESULT_FROM_WIN32
(
r
);
}
}
...
@@ -2110,14 +2110,14 @@ static HRESULT WINAPI mrd_GetSummaryInformation( IWineMsiRemoteDatabase *iface,
...
@@ -2110,14 +2110,14 @@ static HRESULT WINAPI mrd_GetSummaryInformation( IWineMsiRemoteDatabase *iface,
static
HRESULT
WINAPI
mrd_OpenView
(
IWineMsiRemoteDatabase
*
iface
,
static
HRESULT
WINAPI
mrd_OpenView
(
IWineMsiRemoteDatabase
*
iface
,
LPCWSTR
query
,
MSIHANDLE
*
view
)
LPCWSTR
query
,
MSIHANDLE
*
view
)
{
{
msi_remote_database_impl
*
This
=
mrd
_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
impl
_from_IWineMsiRemoteDatabase
(
iface
);
UINT
r
=
MsiDatabaseOpenViewW
(
This
->
database
,
query
,
view
);
UINT
r
=
MsiDatabaseOpenViewW
(
This
->
database
,
query
,
view
);
return
HRESULT_FROM_WIN32
(
r
);
return
HRESULT_FROM_WIN32
(
r
);
}
}
static
HRESULT
WINAPI
mrd_SetMsiHandle
(
IWineMsiRemoteDatabase
*
iface
,
MSIHANDLE
handle
)
static
HRESULT
WINAPI
mrd_SetMsiHandle
(
IWineMsiRemoteDatabase
*
iface
,
MSIHANDLE
handle
)
{
{
msi_remote_database_impl
*
This
=
mrd
_from_IWineMsiRemoteDatabase
(
iface
);
msi_remote_database_impl
*
This
=
impl
_from_IWineMsiRemoteDatabase
(
iface
);
This
->
database
=
handle
;
This
->
database
=
handle
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -2142,7 +2142,7 @@ HRESULT create_msi_remote_database( IUnknown *pOuter, LPVOID *ppObj )
...
@@ -2142,7 +2142,7 @@ HRESULT create_msi_remote_database( IUnknown *pOuter, LPVOID *ppObj )
if
(
!
This
)
if
(
!
This
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
msi_remote_database_vtbl
;
This
->
IWineMsiRemoteDatabase_iface
.
lpVtbl
=
&
msi_remote_database_vtbl
;
This
->
database
=
0
;
This
->
database
=
0
;
This
->
refs
=
1
;
This
->
refs
=
1
;
...
...
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