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
0ff9d8c2
Commit
0ff9d8c2
authored
May 25, 2010
by
André Hentschel
Committed by
Alexandre Julliard
May 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Add Variant to Integer conversion.
parent
0ed22885
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
convert.c
dlls/oledb32/convert.c
+2
-0
convert.c
dlls/oledb32/tests/convert.c
+0
-6
No files found.
dlls/oledb32/convert.c
View file @
0ff9d8c2
...
...
@@ -231,6 +231,7 @@ 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
;
default:
FIXME
(
"Unimplemented conversion %04x -> I2
\n
"
,
src_type
);
return
E_NOTIMPL
;
}
break
;
...
...
@@ -257,6 +258,7 @@ 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
;
default:
FIXME
(
"Unimplemented conversion %04x -> I4
\n
"
,
src_type
);
return
E_NOTIMPL
;
}
break
;
...
...
dlls/oledb32/tests/convert.c
View file @
0ff9d8c2
...
...
@@ -476,13 +476,10 @@ todo_wine
V_VT
((
VARIANT
*
)
src
)
=
VT_I2
;
V_I2
((
VARIANT
*
)
src
)
=
0x4321
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_VARIANT
,
DBTYPE_I2
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
todo_wine
{
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
sizeof
(
dst
),
"got %d
\n
"
,
dst_len
);
ok
(
dst
==
0x4321
,
"got %08x
\n
"
,
dst
);
}
dst_len
=
dst
=
0x1234
;
memset
(
src
,
0
,
sizeof
(
DECIMAL
));
...
...
@@ -755,13 +752,10 @@ static void test_converttoi4(void)
V_I2
((
VARIANT
*
)
src
)
=
0x1234
;
dst_len
=
0x1234
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_VARIANT
,
DBTYPE_I4
,
0
,
&
dst_len
,
src
,
&
i4
,
sizeof
(
i4
),
0
,
&
dst_status
,
0
,
0
,
0
);
todo_wine
{
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
sizeof
(
i4
),
"got %d
\n
"
,
dst_len
);
ok
(
i4
==
0x1234
,
"got %08x
\n
"
,
i4
);
}
i4
=
0x12345678
;
memset
(
src
,
0
,
sizeof
(
DECIMAL
));
...
...
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