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
75c053aa
Commit
75c053aa
authored
Apr 05, 2010
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Apr 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Add tests for DBTYPE_GUID to DBTYPE_WSTR/DBTYPE_STR conversion as todo_wine.
parent
38a21bf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
convert.c
dlls/oledb32/tests/convert.c
+28
-0
No files found.
dlls/oledb32/tests/convert.c
View file @
75c053aa
...
...
@@ -923,6 +923,9 @@ static void test_converttowstr(void)
DBLENGTH
dst_len
;
static
const
WCHAR
ten
[]
=
{
'1'
,
'0'
,
0
};
static
const
WCHAR
fourthreetwoone
[]
=
{
'4'
,
'3'
,
'2'
,
'1'
,
0
};
static
const
WCHAR
guid_str
[]
=
{
'{'
,
'0'
,
'C'
,
'7'
,
'3'
,
'3'
,
'A'
,
'8'
,
'D'
,
'-'
,
'2'
,
'A'
,
'1'
,
'C'
,
'-'
,
'1'
,
'1'
,
'C'
,
'E'
,
'-'
,
'A'
,
'D'
,
'E'
,
'5'
,
'-'
,
'0'
,
'0'
,
'A'
,
'A'
,
'0'
,
'0'
,
'4'
,
'4'
,
'7'
,
'7'
,
'3'
,
'D'
,
'}'
,
0
};
BSTR
b
;
hr
=
CoCreateInstance
(
&
CLSID_OLEDB_CONVERSIONLIBRARY
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDataConvert
,
(
void
**
)
&
convert
);
...
...
@@ -1233,6 +1236,18 @@ static void test_converttowstr(void)
memset
(
src
,
0
,
sizeof
(
src
));
memcpy
(
src
,
&
IID_IDataConvert
,
sizeof
(
GUID
));
memset
(
dst
,
0xcc
,
sizeof
(
dst
));
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_GUID
,
DBTYPE_WSTR
,
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
==
76
,
"got %d
\n
"
,
dst_len
);
ok
(
!
lstrcmpW
(
dst
,
guid_str
),
"got %s
\n
"
,
wine_dbgstr_w
(
dst
));
}
b
=
SysAllocString
(
ten
);
*
(
BSTR
*
)
src
=
b
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_BSTR
,
DBTYPE_WSTR
,
0
,
&
dst_len
,
src
,
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
...
...
@@ -1278,6 +1293,7 @@ static void test_converttostr(void)
static
const
WCHAR
ten
[]
=
{
'1'
,
'0'
,
0
};
static
const
char
ten_a
[]
=
"10"
;
static
const
char
fourthreetwoone
[]
=
"4321"
;
static
const
char
guid_str
[]
=
"{0C733A8D-2A1C-11CE-ADE5-00AA0044773D}"
;
BSTR
b
;
hr
=
CoCreateInstance
(
&
CLSID_OLEDB_CONVERSIONLIBRARY
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IDataConvert
,
(
void
**
)
&
convert
);
...
...
@@ -1585,6 +1601,18 @@ static void test_converttostr(void)
memset
(
src
,
0
,
sizeof
(
src
));
memcpy
(
src
,
&
IID_IDataConvert
,
sizeof
(
GUID
));
memset
(
dst
,
0xcc
,
sizeof
(
dst
));
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_GUID
,
DBTYPE_STR
,
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
==
38
,
"got %d
\n
"
,
dst_len
);
ok
(
!
lstrcmpA
(
dst
,
guid_str
),
"got %s
\n
"
,
dst
);
}
b
=
SysAllocString
(
ten
);
*
(
BSTR
*
)
src
=
b
;
memset
(
dst
,
0xcc
,
sizeof
(
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