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
ef1d367b
Commit
ef1d367b
authored
Feb 08, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MsiModifyView and MsiViewGetColumnInfo to use MSIRECORD* not MSIHANDLE.
parent
cfbffe69
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
93 additions
and
45 deletions
+93
-45
create.c
dlls/msi/create.c
+3
-2
distinct.c
dlls/msi/distinct.c
+4
-3
insert.c
dlls/msi/insert.c
+2
-2
msipriv.h
dlls/msi/msipriv.h
+1
-1
msiquery.c
dlls/msi/msiquery.c
+65
-24
order.c
dlls/msi/order.c
+4
-3
select.c
dlls/msi/select.c
+4
-3
table.c
dlls/msi/table.c
+3
-2
update.c
dlls/msi/update.c
+3
-2
where.c
dlls/msi/where.c
+4
-3
No files found.
dlls/msi/create.c
View file @
ef1d367b
...
...
@@ -188,11 +188,12 @@ static UINT CREATE_get_column_info( struct tagMSIVIEW *view,
return
ERROR_FUNCTION_FAILED
;
}
static
UINT
CREATE_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIHANDLE
hrec
)
static
UINT
CREATE_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIRECORD
*
rec
)
{
MSICREATEVIEW
*
cv
=
(
MSICREATEVIEW
*
)
view
;
TRACE
(
"%p %d %
ld
\n
"
,
cv
,
eModifyMode
,
h
rec
);
TRACE
(
"%p %d %
p
\n
"
,
cv
,
eModifyMode
,
rec
);
return
ERROR_FUNCTION_FAILED
;
}
...
...
dlls/msi/distinct.c
View file @
ef1d367b
...
...
@@ -217,16 +217,17 @@ static UINT DISTINCT_get_column_info( struct tagMSIVIEW *view,
return
dv
->
table
->
ops
->
get_column_info
(
dv
->
table
,
n
,
name
,
type
);
}
static
UINT
DISTINCT_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIHANDLE
hrec
)
static
UINT
DISTINCT_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIRECORD
*
rec
)
{
MSIDISTINCTVIEW
*
dv
=
(
MSIDISTINCTVIEW
*
)
view
;
TRACE
(
"%p %d %
ld
\n
"
,
dv
,
eModifyMode
,
h
rec
);
TRACE
(
"%p %d %
p
\n
"
,
dv
,
eModifyMode
,
rec
);
if
(
!
dv
->
table
)
return
ERROR_FUNCTION_FAILED
;
return
dv
->
table
->
ops
->
modify
(
dv
->
table
,
eModifyMode
,
h
rec
);
return
dv
->
table
->
ops
->
modify
(
dv
->
table
,
eModifyMode
,
rec
);
}
static
UINT
DISTINCT_delete
(
struct
tagMSIVIEW
*
view
)
...
...
dlls/msi/insert.c
View file @
ef1d367b
...
...
@@ -214,11 +214,11 @@ static UINT INSERT_get_column_info( struct tagMSIVIEW *view,
return
sv
->
ops
->
get_column_info
(
sv
,
n
,
name
,
type
);
}
static
UINT
INSERT_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSI
HANDLE
h
rec
)
static
UINT
INSERT_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSI
RECORD
*
rec
)
{
MSIINSERTVIEW
*
iv
=
(
MSIINSERTVIEW
*
)
view
;
TRACE
(
"%p %d %
ld
\n
"
,
iv
,
eModifyMode
,
h
rec
);
TRACE
(
"%p %d %
p
\n
"
,
iv
,
eModifyMode
,
rec
);
return
ERROR_FUNCTION_FAILED
;
}
...
...
dlls/msi/msipriv.h
View file @
ef1d367b
...
...
@@ -161,7 +161,7 @@ typedef struct tagMSIVIEWOPS
/*
* modify - not yet implemented properly
*/
UINT
(
*
modify
)(
struct
tagMSIVIEW
*
,
MSIMODIFY
,
MSI
HANDLE
);
UINT
(
*
modify
)(
struct
tagMSIVIEW
*
,
MSIMODIFY
,
MSI
RECORD
*
);
/*
* delete - destroys the structure completely
...
...
dlls/msi/msiquery.c
View file @
ef1d367b
...
...
@@ -430,10 +430,10 @@ out:
UINT
WINAPI
MsiViewGetColumnInfo
(
MSIHANDLE
hView
,
MSICOLINFO
info
,
MSIHANDLE
*
hRec
)
{
MSIVIEW
*
view
;
MSIQUERY
*
query
;
MSI
HANDLE
handle
;
UINT
r
et
,
i
,
count
=
0
,
type
;
MSIVIEW
*
view
=
NULL
;
MSIQUERY
*
query
=
NULL
;
MSI
RECORD
*
rec
=
NULL
;
UINT
r
=
ERROR_FUNCTION_FAILED
,
i
,
count
=
0
,
type
;
LPWSTR
name
;
TRACE
(
"%ld %d %p
\n
"
,
hView
,
info
,
hRec
);
...
...
@@ -444,34 +444,82 @@ UINT WINAPI MsiViewGetColumnInfo(MSIHANDLE hView, MSICOLINFO info, MSIHANDLE *hR
view
=
query
->
view
;
if
(
!
view
)
return
ERROR_FUNCTION_FAILED
;
goto
out
;
if
(
!
view
->
ops
->
get_dimensions
)
return
ERROR_FUNCTION_FAILED
;
goto
out
;
r
et
=
view
->
ops
->
get_dimensions
(
view
,
NULL
,
&
count
);
if
(
r
et
)
return
re
t
;
r
=
view
->
ops
->
get_dimensions
(
view
,
NULL
,
&
count
);
if
(
r
)
goto
ou
t
;
if
(
!
count
)
return
ERROR_INVALID_PARAMETER
;
{
r
=
ERROR_INVALID_PARAMETER
;
goto
out
;
}
handle
=
Msi
CreateRecord
(
count
);
if
(
!
handle
)
rec
=
MSI_
CreateRecord
(
count
);
if
(
!
rec
)
return
ERROR_FUNCTION_FAILED
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
name
=
NULL
;
r
et
=
view
->
ops
->
get_column_info
(
view
,
i
+
1
,
&
name
,
&
type
);
if
(
r
et
!=
ERROR_SUCCESS
)
r
=
view
->
ops
->
get_column_info
(
view
,
i
+
1
,
&
name
,
&
type
);
if
(
r
!=
ERROR_SUCCESS
)
continue
;
M
siRecordSetStringW
(
handle
,
i
+
1
,
name
);
M
SI_RecordSetStringW
(
rec
,
i
+
1
,
name
);
HeapFree
(
GetProcessHeap
(),
0
,
name
);
}
*
hRec
=
handle
;
*
hRec
=
alloc_msihandle
(
&
rec
->
hdr
)
;
return
ERROR_SUCCESS
;
out:
if
(
query
)
msiobj_release
(
&
query
->
hdr
);
if
(
rec
)
msiobj_release
(
&
rec
->
hdr
);
return
r
;
}
UINT
WINAPI
MsiViewModify
(
MSIHANDLE
hView
,
MSIMODIFY
eModifyMode
,
MSIHANDLE
hRecord
)
{
MSIVIEW
*
view
=
NULL
;
MSIQUERY
*
query
=
NULL
;
MSIRECORD
*
rec
=
NULL
;
UINT
r
=
ERROR_FUNCTION_FAILED
;
TRACE
(
"%ld %x %ld
\n
"
,
hView
,
eModifyMode
,
hRecord
);
query
=
msihandle2msiinfo
(
hView
,
MSIHANDLETYPE_VIEW
);
if
(
!
query
)
return
ERROR_INVALID_HANDLE
;
view
=
query
->
view
;
if
(
!
view
)
goto
out
;
if
(
!
view
->
ops
->
modify
)
goto
out
;
rec
=
msihandle2msiinfo
(
hRecord
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
{
r
=
ERROR_INVALID_HANDLE
;
goto
out
;
}
r
=
view
->
ops
->
modify
(
view
,
eModifyMode
,
rec
);
out:
if
(
query
)
msiobj_release
(
&
query
->
hdr
);
if
(
rec
)
msiobj_release
(
&
rec
->
hdr
);
return
r
;
}
UINT
WINAPI
MsiDatabaseApplyTransformA
(
MSIHANDLE
hdb
,
...
...
@@ -540,13 +588,6 @@ UINT WINAPI MsiDatabaseGetPrimaryKeysW(MSIHANDLE hdb,
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
UINT
WINAPI
MsiViewModify
(
MSIHANDLE
hView
,
MSIMODIFY
eModifyMode
,
MSIHANDLE
hRecord
)
{
FIXME
(
"%ld %x %ld
\n
"
,
hView
,
eModifyMode
,
hRecord
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
UINT
WINAPI
MsiDatabaseIsTablePersistentA
(
MSIHANDLE
hDatabase
,
LPSTR
szTableName
)
{
...
...
dlls/msi/order.c
View file @
ef1d367b
...
...
@@ -218,16 +218,17 @@ static UINT ORDER_get_column_info( struct tagMSIVIEW *view,
return
ov
->
table
->
ops
->
get_column_info
(
ov
->
table
,
n
,
name
,
type
);
}
static
UINT
ORDER_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIHANDLE
hrec
)
static
UINT
ORDER_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIRECORD
*
rec
)
{
MSIORDERVIEW
*
ov
=
(
MSIORDERVIEW
*
)
view
;
TRACE
(
"%p %d %
ld
\n
"
,
ov
,
eModifyMode
,
h
rec
);
TRACE
(
"%p %d %
p
\n
"
,
ov
,
eModifyMode
,
rec
);
if
(
!
ov
->
table
)
return
ERROR_FUNCTION_FAILED
;
return
ov
->
table
->
ops
->
modify
(
ov
->
table
,
eModifyMode
,
h
rec
);
return
ov
->
table
->
ops
->
modify
(
ov
->
table
,
eModifyMode
,
rec
);
}
static
UINT
ORDER_delete
(
struct
tagMSIVIEW
*
view
)
...
...
dlls/msi/select.c
View file @
ef1d367b
...
...
@@ -168,16 +168,17 @@ static UINT SELECT_get_column_info( struct tagMSIVIEW *view,
return
sv
->
table
->
ops
->
get_column_info
(
sv
->
table
,
n
,
name
,
type
);
}
static
UINT
SELECT_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIHANDLE
hrec
)
static
UINT
SELECT_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIRECORD
*
rec
)
{
MSISELECTVIEW
*
sv
=
(
MSISELECTVIEW
*
)
view
;
TRACE
(
"%p %d %
ld
\n
"
,
sv
,
eModifyMode
,
h
rec
);
TRACE
(
"%p %d %
p
\n
"
,
sv
,
eModifyMode
,
rec
);
if
(
!
sv
->
table
)
return
ERROR_FUNCTION_FAILED
;
return
sv
->
table
->
ops
->
modify
(
sv
->
table
,
eModifyMode
,
h
rec
);
return
sv
->
table
->
ops
->
modify
(
sv
->
table
,
eModifyMode
,
rec
);
}
static
UINT
SELECT_delete
(
struct
tagMSIVIEW
*
view
)
...
...
dlls/msi/table.c
View file @
ef1d367b
...
...
@@ -1284,9 +1284,10 @@ static UINT TABLE_get_column_info( struct tagMSIVIEW *view,
return
ERROR_SUCCESS
;
}
static
UINT
TABLE_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIHANDLE
hrec
)
static
UINT
TABLE_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIRECORD
*
rec
)
{
FIXME
(
"%p %d %
ld
\n
"
,
view
,
eModifyMode
,
h
rec
);
FIXME
(
"%p %d %
p
\n
"
,
view
,
eModifyMode
,
rec
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
...
...
dlls/msi/update.c
View file @
ef1d367b
...
...
@@ -151,11 +151,12 @@ static UINT UPDATE_get_column_info( struct tagMSIVIEW *view,
return
wv
->
ops
->
get_column_info
(
wv
,
n
,
name
,
type
);
}
static
UINT
UPDATE_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIHANDLE
hrec
)
static
UINT
UPDATE_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIRECORD
*
rec
)
{
MSIUPDATEVIEW
*
uv
=
(
MSIUPDATEVIEW
*
)
view
;
TRACE
(
"%p %d %
ld
\n
"
,
uv
,
eModifyMode
,
h
rec
);
TRACE
(
"%p %d %
p
\n
"
,
uv
,
eModifyMode
,
rec
);
return
ERROR_FUNCTION_FAILED
;
}
...
...
dlls/msi/where.c
View file @
ef1d367b
...
...
@@ -307,16 +307,17 @@ static UINT WHERE_get_column_info( struct tagMSIVIEW *view,
return
wv
->
table
->
ops
->
get_column_info
(
wv
->
table
,
n
,
name
,
type
);
}
static
UINT
WHERE_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIHANDLE
hrec
)
static
UINT
WHERE_modify
(
struct
tagMSIVIEW
*
view
,
MSIMODIFY
eModifyMode
,
MSIRECORD
*
rec
)
{
MSIWHEREVIEW
*
wv
=
(
MSIWHEREVIEW
*
)
view
;
TRACE
(
"%p %d %
ld
\n
"
,
wv
,
eModifyMode
,
h
rec
);
TRACE
(
"%p %d %
p
\n
"
,
wv
,
eModifyMode
,
rec
);
if
(
!
wv
->
table
)
return
ERROR_FUNCTION_FAILED
;
return
wv
->
table
->
ops
->
modify
(
wv
->
table
,
eModifyMode
,
h
rec
);
return
wv
->
table
->
ops
->
modify
(
wv
->
table
,
eModifyMode
,
rec
);
}
static
UINT
WHERE_delete
(
struct
tagMSIVIEW
*
view
)
...
...
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