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
0efdde1f
Commit
0efdde1f
authored
Nov 04, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Nov 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: Fix some failing tests on win98.
parent
f8376b91
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
37 deletions
+54
-37
convert.c
dlls/oledb32/tests/convert.c
+52
-37
oledberr.h
include/oledberr.h
+2
-0
No files found.
dlls/oledb32/tests/convert.c
View file @
0efdde1f
...
@@ -555,26 +555,31 @@ todo_wine
...
@@ -555,26 +555,31 @@ todo_wine
dst
=
0x1234
;
dst
=
0x1234
;
((
LARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x1234abcd
;
((
LARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x1234abcd
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_I8
,
DBTYPE_I2
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_I8
,
DBTYPE_I2
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
hr
==
DB_E_ERRORSOCCURRED
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
DB_E_ERRORSOCCURRED
||
ok
(
dst_status
==
DBSTATUS_E_DATAOVERFLOW
,
"got %08x
\n
"
,
dst_status
);
broken
(
hr
==
DB_E_UNSUPPORTEDCONVERSION
),
/* win98 */
ok
(
dst_len
==
sizeof
(
dst
),
"got %d
\n
"
,
dst_len
);
"got %08x
\n
"
,
hr
);
ok
(
dst
==
0x1234
,
"got %08x
\n
"
,
dst
);
if
(
hr
!=
DB_E_UNSUPPORTEDCONVERSION
)
/* win98 doesn't support I8/UI8 */
{
dst
=
0x1234
;
ok
(
dst_status
==
DBSTATUS_E_DATAOVERFLOW
,
"got %08x
\n
"
,
dst_status
);
((
LARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x4321
;
ok
(
dst_len
==
sizeof
(
dst
),
"got %d
\n
"
,
dst_len
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_I8
,
DBTYPE_I2
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
dst
==
0x1234
,
"got %08x
\n
"
,
dst
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
dst
=
0x1234
;
ok
(
dst_len
==
sizeof
(
dst
),
"got %d
\n
"
,
dst_len
);
((
LARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x4321
;
ok
(
dst
==
0x4321
,
"got %08x
\n
"
,
dst
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_I8
,
DBTYPE_I2
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
dst
=
0x1234
;
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
((
ULARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x4321
;
ok
(
dst_len
==
sizeof
(
dst
),
"got %d
\n
"
,
dst_len
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_UI8
,
DBTYPE_I2
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
dst
==
0x4321
,
"got %08x
\n
"
,
dst
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
dst
=
0x1234
;
ok
(
dst_len
==
sizeof
(
dst
),
"got %d
\n
"
,
dst_len
);
((
ULARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x4321
;
ok
(
dst
==
0x4321
,
"got %08x
\n
"
,
dst
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_UI8
,
DBTYPE_I2
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
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
=
0x1234
;
dst
=
0x1234
;
strcpy
((
char
*
)
src
,
"10"
);
strcpy
((
char
*
)
src
,
"10"
);
...
@@ -798,18 +803,23 @@ todo_wine
...
@@ -798,18 +803,23 @@ todo_wine
i4
=
0x12345678
;
i4
=
0x12345678
;
((
LARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x1234abcd
;
((
LARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x1234abcd
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_I8
,
DBTYPE_I4
,
0
,
&
dst_len
,
src
,
&
i4
,
sizeof
(
i4
),
0
,
&
dst_status
,
0
,
0
,
0
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_I8
,
DBTYPE_I4
,
0
,
&
dst_len
,
src
,
&
i4
,
sizeof
(
i4
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
broken
(
hr
==
DB_E_UNSUPPORTEDCONVERSION
),
/* win98 */
ok
(
dst_len
==
sizeof
(
i4
),
"got %d
\n
"
,
dst_len
);
"got %08x
\n
"
,
hr
);
ok
(
i4
==
0x1234abcd
,
"got %08x
\n
"
,
i4
);
if
(
hr
!=
DB_E_UNSUPPORTEDCONVERSION
)
/* win98 doesn't support I8/UI8 */
{
i4
=
0x12345678
;
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
((
ULARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x1234abcd
;
ok
(
dst_len
==
sizeof
(
i4
),
"got %d
\n
"
,
dst_len
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_UI8
,
DBTYPE_I4
,
0
,
&
dst_len
,
src
,
&
i4
,
sizeof
(
i4
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
i4
==
0x1234abcd
,
"got %08x
\n
"
,
i4
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
i4
=
0x12345678
;
ok
(
dst_len
==
sizeof
(
i4
),
"got %d
\n
"
,
dst_len
);
((
ULARGE_INTEGER
*
)
src
)
->
QuadPart
=
0x1234abcd
;
ok
(
i4
==
0x1234abcd
,
"got %08x
\n
"
,
i4
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_UI8
,
DBTYPE_I4
,
0
,
&
dst_len
,
src
,
&
i4
,
sizeof
(
i4
),
0
,
&
dst_status
,
0
,
0
,
0
);
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
==
0x1234abcd
,
"got %08x
\n
"
,
i4
);
}
i4
=
0x12345678
;
i4
=
0x12345678
;
strcpy
((
char
*
)
src
,
"10"
);
strcpy
((
char
*
)
src
,
"10"
);
...
@@ -1174,11 +1184,16 @@ static void test_converttofiletime(void)
...
@@ -1174,11 +1184,16 @@ static void test_converttofiletime(void)
((
FILETIME
*
)
src
)
->
dwLowDateTime
=
0x12345678
;
((
FILETIME
*
)
src
)
->
dwLowDateTime
=
0x12345678
;
((
FILETIME
*
)
src
)
->
dwHighDateTime
=
0x9abcdef0
;
((
FILETIME
*
)
src
)
->
dwHighDateTime
=
0x9abcdef0
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_FILETIME
,
DBTYPE_FILETIME
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_FILETIME
,
DBTYPE_FILETIME
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
||
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
broken
(
hr
==
DB_E_BADBINDINFO
),
/* win98 */
ok
(
dst_len
==
sizeof
(
dst
),
"got %d
\n
"
,
dst_len
);
"got %08x
\n
"
,
hr
);
ok
(
dst
.
dwLowDateTime
==
0x12345678
,
"got %08x
\n
"
,
dst
.
dwLowDateTime
);
if
(
SUCCEEDED
(
hr
))
ok
(
dst
.
dwHighDateTime
==
0x9abcdef0
,
"got %08x
\n
"
,
dst
.
dwHighDateTime
);
{
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
sizeof
(
dst
),
"got %d
\n
"
,
dst_len
);
ok
(
dst
.
dwLowDateTime
==
0x12345678
,
"got %08x
\n
"
,
dst
.
dwLowDateTime
);
ok
(
dst
.
dwHighDateTime
==
0x9abcdef0
,
"got %08x
\n
"
,
dst
.
dwHighDateTime
);
}
IDataConvert_Release
(
convert
);
IDataConvert_Release
(
convert
);
}
}
...
...
include/oledberr.h
View file @
0efdde1f
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
#ifndef __WINE_OLEDBERR_H
#ifndef __WINE_OLEDBERR_H
#define __WINE_OLEDBERR_H
#define __WINE_OLEDBERR_H
#define DB_E_BADBINDINFO 0x80040e08
#define DB_E_NOTFOUND 0x80040e19
#define DB_E_NOTFOUND 0x80040e19
#define DB_E_UNSUPPORTEDCONVERSION 0x80040e1d
#define DB_E_UNSUPPORTEDCONVERSION 0x80040e1d
...
...
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