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
12037aa4
Commit
12037aa4
authored
Sep 23, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Sep 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Add conversions to DBTYPE_I2.
parent
0443f2c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
convert.c
dlls/oledb32/convert.c
+26
-0
convert.c
dlls/oledb32/tests/convert.c
+0
-0
No files found.
dlls/oledb32/convert.c
View file @
12037aa4
...
...
@@ -198,6 +198,32 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
switch
(
dst_type
)
{
case
DBTYPE_I2
:
{
signed
short
*
d
=
dst
;
switch
(
src_type
)
{
case
DBTYPE_EMPTY
:
*
d
=
0
;
hr
=
S_OK
;
break
;
case
DBTYPE_I2
:
*
d
=
*
(
signed
short
*
)
src
;
hr
=
S_OK
;
break
;
case
DBTYPE_I4
:
hr
=
VarI2FromI4
(
*
(
signed
int
*
)
src
,
d
);
break
;
case
DBTYPE_R4
:
hr
=
VarI2FromR4
(
*
(
FLOAT
*
)
src
,
d
);
break
;
case
DBTYPE_R8
:
hr
=
VarI2FromR8
(
*
(
double
*
)
src
,
d
);
break
;
case
DBTYPE_CY
:
hr
=
VarI2FromCy
(
*
(
CY
*
)
src
,
d
);
break
;
case
DBTYPE_DATE
:
hr
=
VarI2FromDate
(
*
(
DATE
*
)
src
,
d
);
break
;
case
DBTYPE_BSTR
:
hr
=
VarI2FromStr
(
*
(
WCHAR
**
)
src
,
LOCALE_USER_DEFAULT
,
0
,
d
);
break
;
case
DBTYPE_BOOL
:
hr
=
VarI2FromBool
(
*
(
VARIANT_BOOL
*
)
src
,
d
);
break
;
case
DBTYPE_DECIMAL
:
hr
=
VarI2FromDec
((
DECIMAL
*
)
src
,
d
);
break
;
case
DBTYPE_I1
:
hr
=
VarI2FromI1
(
*
(
signed
char
*
)
src
,
d
);
break
;
case
DBTYPE_UI1
:
hr
=
VarI2FromUI1
(
*
(
BYTE
*
)
src
,
d
);
break
;
case
DBTYPE_UI2
:
hr
=
VarI2FromUI2
(
*
(
WORD
*
)
src
,
d
);
break
;
case
DBTYPE_UI4
:
hr
=
VarI2FromUI4
(
*
(
DWORD
*
)
src
,
d
);
break
;
case
DBTYPE_I8
:
hr
=
VarI2FromI8
(
*
(
LONGLONG
*
)
src
,
d
);
break
;
case
DBTYPE_UI8
:
hr
=
VarI2FromUI8
(
*
(
ULONGLONG
*
)
src
,
d
);
break
;
default:
FIXME
(
"Unimplemented conversion %04x -> I2
\n
"
,
src_type
);
return
E_NOTIMPL
;
}
break
;
}
case
DBTYPE_I4
:
{
signed
int
*
d
=
dst
;
...
...
dlls/oledb32/tests/convert.c
View file @
12037aa4
This diff is collapsed.
Click to expand it.
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