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
a1610861
Commit
a1610861
authored
Sep 27, 2023
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msado15: Implement _Recordset::get_ActiveConnection.
parent
e06780c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
recordset.c
dlls/msado15/recordset.c
+6
-2
msado15.c
dlls/msado15/tests/msado15.c
+13
-1
No files found.
dlls/msado15/recordset.c
View file @
a1610861
...
...
@@ -39,6 +39,7 @@ struct recordset
ADORecordsetConstruction
ADORecordsetConstruction_iface
;
ISupportErrorInfo
ISupportErrorInfo_iface
;
LONG
refs
;
VARIANT
active_connection
;
LONG
state
;
struct
fields
*
fields
;
LONG
count
;
...
...
@@ -1401,8 +1402,9 @@ static HRESULT WINAPI recordset_put_ActiveConnection( _Recordset *iface, VARIANT
static
HRESULT
WINAPI
recordset_get_ActiveConnection
(
_Recordset
*
iface
,
VARIANT
*
connection
)
{
FIXME
(
"%p, %p
\n
"
,
iface
,
connection
);
return
E_NOTIMPL
;
struct
recordset
*
recordset
=
impl_from_Recordset
(
iface
);
TRACE
(
"%p, %p
\n
"
,
iface
,
connection
);
return
VariantCopy
(
connection
,
&
recordset
->
active_connection
);
}
static
HRESULT
WINAPI
recordset_get_BOF
(
_Recordset
*
iface
,
VARIANT_BOOL
*
bof
)
...
...
@@ -2737,6 +2739,8 @@ HRESULT Recordset_create( void **obj )
recordset
->
Recordset_iface
.
lpVtbl
=
&
recordset_vtbl
;
recordset
->
ISupportErrorInfo_iface
.
lpVtbl
=
&
recordset_supporterrorinfo_vtbl
;
recordset
->
ADORecordsetConstruction_iface
.
lpVtbl
=
&
rsconstruction_vtbl
;
V_VT
(
&
recordset
->
active_connection
)
=
VT_DISPATCH
;
V_DISPATCH
(
&
recordset
->
active_connection
)
=
NULL
;
recordset
->
refs
=
1
;
recordset
->
index
=
-
1
;
recordset
->
cursor_location
=
adUseServer
;
...
...
dlls/msado15/tests/msado15.c
View file @
a1610861
...
...
@@ -59,7 +59,7 @@ static void test_Recordset(void)
CursorTypeEnum
cursor
;
BSTR
name
;
HRESULT
hr
;
VARIANT
bookmark
,
filter
;
VARIANT
bookmark
,
filter
,
active
;
EditModeEnum
editmode
;
hr
=
CoCreateInstance
(
&
CLSID_Recordset
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID__Recordset
,
(
void
**
)
&
recordset
);
...
...
@@ -222,6 +222,18 @@ static void test_Recordset(void)
ok
(
is_eof
(
recordset
),
"not eof
\n
"
);
ok
(
is_bof
(
recordset
),
"not bof
\n
"
);
if
(
0
)
{
/* Causes a crash */
hr
=
_Recordset_get_ActiveConnection
(
recordset
,
NULL
);
}
VariantInit
(
&
active
);
hr
=
_Recordset_get_ActiveConnection
(
recordset
,
&
active
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
V_VT
(
&
active
)
==
VT_DISPATCH
,
"got %d
\n
"
,
V_VT
(
&
active
)
);
ok
(
V_DISPATCH
(
&
active
)
==
NULL
,
"got %p
\n
"
,
V_DISPATCH
(
&
active
)
);
VariantClear
(
&
active
);
editmode
=
-
1
;
hr
=
_Recordset_get_EditMode
(
recordset
,
&
editmode
);
ok
(
hr
==
MAKE_ADO_HRESULT
(
adErrNoCurrentRecord
),
"got %08lx
\n
"
,
hr
);
...
...
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