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
90124d54
Commit
90124d54
authored
May 09, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
May 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: Test converting DBTYPE_VARIANT to DBTYPE_GUID.
parent
0dc1c6ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
convert.c
dlls/oledb32/tests/convert.c
+27
-0
No files found.
dlls/oledb32/tests/convert.c
View file @
90124d54
...
@@ -2680,6 +2680,33 @@ static void test_converttoguid(void)
...
@@ -2680,6 +2680,33 @@ static void test_converttoguid(void)
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_ISNULL
,
"got %08lx
\n
"
,
dst_status
);
ok
(
dst_status
==
DBSTATUS_S_ISNULL
,
"got %08lx
\n
"
,
dst_status
);
ok
(
dst_len
==
44
,
"got %Id
\n
"
,
dst_len
);
ok
(
dst_len
==
44
,
"got %Id
\n
"
,
dst_len
);
dst_len
=
0x1234
;
dst
=
IID_IDCInfo
;
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
SysAllocStringLen
(
L"{0c733a8d-2a1c-11ce-ade5-00aa0044773d}"
,
38
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_VARIANT
,
DBTYPE_GUID
,
0
,
&
dst_len
,
&
v
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
todo_wine
ok
(
hr
==
S_OK
,
"got %08lx
\n
"
,
hr
);
todo_wine
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08lx
\n
"
,
dst_status
);
todo_wine
ok
(
dst_len
==
sizeof
(
GUID
),
"got %Id
\n
"
,
dst_len
);
todo_wine
ok
(
IsEqualGUID
(
&
dst
,
&
IID_IDataConvert
),
"didn't get IID_IDataConvert
\n
"
);
SysFreeString
(
V_BSTR
(
&
v
));
dst_len
=
0x1234
;
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
SysAllocStringLen
(
L"{invalid0-0000-0000-0000-000000000000}"
,
38
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_VARIANT
,
DBTYPE_GUID
,
0
,
&
dst_len
,
&
v
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
todo_wine
ok
(
hr
==
CO_E_CLASSSTRING
,
"got %08lx
\n
"
,
hr
);
todo_wine
ok
(
dst_status
==
DBSTATUS_E_CANTCONVERTVALUE
,
"got %08lx
\n
"
,
dst_status
);
todo_wine
ok
(
dst_len
==
sizeof
(
GUID
),
"got %Id
\n
"
,
dst_len
);
SysFreeString
(
V_BSTR
(
&
v
));
}
}
static
void
test_converttofiletime
(
void
)
static
void
test_converttofiletime
(
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