Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b7f70aa0
Commit
b7f70aa0
authored
Nov 27, 2020
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Add a partial implementation of IErrorRecords_GetErrorInfo().
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
496c6734
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
errorinfo.c
dlls/oledb32/errorinfo.c
+1
-1
database.c
dlls/oledb32/tests/database.c
+8
-0
No files found.
dlls/oledb32/errorinfo.c
View file @
b7f70aa0
...
...
@@ -361,7 +361,7 @@ static HRESULT WINAPI errorrec_GetErrorInfo(IErrorRecords *iface, ULONG index,
if
(
index
>=
This
->
count
)
return
DB_E_BADRECORDNUM
;
return
E_NOTIMPL
;
return
IErrorInfo_QueryInterface
(
&
This
->
IErrorInfo_iface
,
&
IID_IErrorInfo
,
(
void
**
)
ppErrorInfo
)
;
}
static
HRESULT
WINAPI
errorrec_GetErrorParameters
(
IErrorRecords
*
iface
,
ULONG
index
,
DISPPARAMS
*
pdispparams
)
...
...
dlls/oledb32/tests/database.c
View file @
b7f70aa0
...
...
@@ -486,6 +486,14 @@ static void test_errorinfo(void)
ok
(
dispparams
.
cArgs
==
1
,
"Got argument count %u
\n
"
,
dispparams
.
cArgs
);
ok
(
dispparams
.
cNamedArgs
==
1
,
"Got named argument count %u
\n
"
,
dispparams
.
cNamedArgs
);
EXPECT_REF
(
errrecs
,
2
);
EXPECT_REF
(
errorinfo
,
2
);
hr
=
IErrorRecords_GetErrorInfo
(
errrecs
,
0
,
0
,
&
errorinfo2
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
errorinfo
==
errorinfo2
,
"different object
\n
"
);
EXPECT_REF
(
errorinfo
,
3
);
IErrorInfo_Release
(
errorinfo2
);
free_dispparams
(
&
dispparams
);
VariantClear
(
&
arg
);
...
...
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