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
7dfa5688
Commit
7dfa5688
authored
May 21, 2013
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
May 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Source status DBSTATUS_S_ISNULL applies to all conversions.
parent
24e56bee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
convert.c
dlls/oledb32/convert.c
+7
-7
convert.c
dlls/oledb32/tests/convert.c
+8
-0
No files found.
dlls/oledb32/convert.c
View file @
7dfa5688
...
...
@@ -184,6 +184,13 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
return
DB_E_UNSUPPORTEDCONVERSION
;
}
if
(
src_status
==
DBSTATUS_S_ISNULL
)
{
*
dst_status
=
DBSTATUS_S_ISNULL
;
*
dst_len
=
0
;
return
S_OK
;
}
if
(
src_type
==
DBTYPE_STR
)
{
BSTR
b
;
...
...
@@ -805,13 +812,6 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
{
VARIANT
*
v
=
dst
;
if
(
src_status
==
DBSTATUS_S_ISNULL
)
{
*
dst_status
=
DBSTATUS_S_ISNULL
;
*
dst_len
=
0
;
return
S_OK
;
}
switch
(
src_type
)
{
case
DBTYPE_BOOL
:
...
...
dlls/oledb32/tests/convert.c
View file @
7dfa5688
...
...
@@ -884,6 +884,14 @@ todo_wine
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
sizeof
(
i4
),
"got %ld
\n
"
,
dst_len
);
ok
(
i4
==
10
,
"got %08x
\n
"
,
i4
);
/* src_status = DBSTATUS_S_ISNULL */
i4
=
0x12345678
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_I4
,
DBTYPE_I4
,
0
,
&
dst_len
,
src
,
&
i4
,
sizeof
(
i4
),
DBSTATUS_S_ISNULL
,
&
dst_status
,
0
,
0
,
0
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_ISNULL
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
0
,
"got %ld
\n
"
,
dst_len
);
}
static
void
test_converttoi8
(
void
)
...
...
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