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
fd5e732a
Commit
fd5e732a
authored
May 27, 2010
by
André Hentschel
Committed by
Alexandre Julliard
May 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Fix variant to integer conversion.
parent
fd5b4f4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
convert.c
dlls/oledb32/convert.c
+12
-2
No files found.
dlls/oledb32/convert.c
View file @
fd5e732a
...
...
@@ -213,6 +213,7 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
case
DBTYPE_I2
:
{
signed
short
*
d
=
dst
;
VARIANT
tmp
;
switch
(
src_type
)
{
case
DBTYPE_EMPTY
:
*
d
=
0
;
hr
=
S_OK
;
break
;
...
...
@@ -231,7 +232,11 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
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
;
case
DBTYPE_VARIANT
:
*
d
=
V_I2
((
VARIANT
*
)
src
);
hr
=
S_OK
;
break
;
case
DBTYPE_VARIANT
:
VariantInit
(
&
tmp
);
if
((
hr
=
VariantChangeType
(
&
tmp
,
(
VARIANT
*
)
src
,
0
,
VT_I2
))
==
S_OK
)
*
d
=
V_I2
(
&
tmp
);
break
;
default:
FIXME
(
"Unimplemented conversion %04x -> I2
\n
"
,
src_type
);
return
E_NOTIMPL
;
}
break
;
...
...
@@ -240,6 +245,7 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
case
DBTYPE_I4
:
{
signed
int
*
d
=
dst
;
VARIANT
tmp
;
switch
(
src_type
)
{
case
DBTYPE_EMPTY
:
*
d
=
0
;
hr
=
S_OK
;
break
;
...
...
@@ -258,7 +264,11 @@ static HRESULT WINAPI convert_DataConvert(IDataConvert* iface,
case
DBTYPE_UI4
:
hr
=
VarI4FromUI4
(
*
(
DWORD
*
)
src
,
d
);
break
;
case
DBTYPE_I8
:
hr
=
VarI4FromI8
(
*
(
LONGLONG
*
)
src
,
d
);
break
;
case
DBTYPE_UI8
:
hr
=
VarI4FromUI8
(
*
(
ULONGLONG
*
)
src
,
d
);
break
;
case
DBTYPE_VARIANT
:
*
d
=
V_I4
((
VARIANT
*
)
src
);
hr
=
S_OK
;
break
;
case
DBTYPE_VARIANT
:
VariantInit
(
&
tmp
);
if
((
hr
=
VariantChangeType
(
&
tmp
,
(
VARIANT
*
)
src
,
0
,
VT_I4
))
==
S_OK
)
*
d
=
V_I4
(
&
tmp
);
break
;
default:
FIXME
(
"Unimplemented conversion %04x -> I4
\n
"
,
src_type
);
return
E_NOTIMPL
;
}
break
;
...
...
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