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
8ece2fa1
Commit
8ece2fa1
authored
May 30, 2019
by
Owen Rudge
Committed by
Alexandre Julliard
Jun 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Implement support for converting to DBTYPE_I1.
Signed-off-by:
Owen Rudge
<
orudge@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3b2592a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
convert.c
dlls/oledb32/convert.c
+31
-0
No files found.
dlls/oledb32/convert.c
View file @
8ece2fa1
...
...
@@ -249,6 +249,37 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
switch
(
dst_type
)
{
case
DBTYPE_I1
:
{
signed
char
*
d
=
dst
;
switch
(
src_type
)
{
case
DBTYPE_EMPTY
:
*
d
=
0
;
hr
=
S_OK
;
break
;
case
DBTYPE_I1
:
*
d
=
*
(
signed
char
*
)
src
;
hr
=
S_OK
;
break
;
case
DBTYPE_I2
:
hr
=
VarI1FromI2
(
*
(
signed
short
*
)
src
,
d
);
break
;
case
DBTYPE_I4
:
hr
=
VarI1FromI4
(
*
(
signed
int
*
)
src
,
d
);
break
;
case
DBTYPE_R4
:
hr
=
VarI1FromR4
(
*
(
FLOAT
*
)
src
,
d
);
break
;
case
DBTYPE_R8
:
hr
=
VarI1FromR8
(
*
(
double
*
)
src
,
d
);
break
;
case
DBTYPE_CY
:
hr
=
VarI1FromCy
(
*
(
CY
*
)
src
,
d
);
break
;
case
DBTYPE_DATE
:
hr
=
VarI1FromDate
(
*
(
DATE
*
)
src
,
d
);
break
;
case
DBTYPE_BSTR
:
hr
=
VarI1FromStr
(
*
(
WCHAR
**
)
src
,
LOCALE_USER_DEFAULT
,
0
,
d
);
break
;
case
DBTYPE_BOOL
:
hr
=
VarI1FromBool
(
*
(
VARIANT_BOOL
*
)
src
,
d
);
break
;
case
DBTYPE_DECIMAL
:
hr
=
VarI1FromDec
((
DECIMAL
*
)
src
,
d
);
break
;
case
DBTYPE_UI1
:
hr
=
VarI1FromUI1
(
*
(
BYTE
*
)
src
,
d
);
break
;
case
DBTYPE_UI2
:
hr
=
VarI1FromUI2
(
*
(
WORD
*
)
src
,
d
);
break
;
case
DBTYPE_UI4
:
hr
=
VarI1FromUI4
(
*
(
DWORD
*
)
src
,
d
);
break
;
case
DBTYPE_I8
:
hr
=
VarI1FromI8
(
*
(
LONGLONG
*
)
src
,
d
);
break
;
case
DBTYPE_UI8
:
hr
=
VarI1FromUI8
(
*
(
ULONGLONG
*
)
src
,
d
);
break
;
case
DBTYPE_VARIANT
:
VariantInit
(
&
tmp
);
if
((
hr
=
VariantChangeType
(
&
tmp
,
(
VARIANT
*
)
src
,
0
,
VT_I1
))
==
S_OK
)
*
d
=
V_I1
(
&
tmp
);
break
;
default:
FIXME
(
"Unimplemented conversion %04x -> I1
\n
"
,
src_type
);
return
E_NOTIMPL
;
}
break
;
}
case
DBTYPE_I2
:
{
signed
short
*
d
=
dst
;
...
...
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