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
65180fb2
Commit
65180fb2
authored
Mar 04, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: The destination array address can't be modified by the called function.
parent
b7f6362d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
convert.c
dlls/oledb32/tests/convert.c
+3
-5
No files found.
dlls/oledb32/tests/convert.c
View file @
65180fb2
...
@@ -1346,7 +1346,7 @@ static void test_converttowstr(void)
...
@@ -1346,7 +1346,7 @@ static void test_converttowstr(void)
memcpy
(
src
,
&
IID_IDataConvert
,
sizeof
(
GUID
));
memcpy
(
src
,
&
IID_IDataConvert
,
sizeof
(
GUID
));
memset
(
dst
,
0xcc
,
sizeof
(
dst
));
memset
(
dst
,
0xcc
,
sizeof
(
dst
));
dst_len
=
0x1234
;
dst_len
=
0x1234
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_GUID
,
DBTYPE_WSTR
,
0
,
&
dst_len
,
src
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_GUID
,
DBTYPE_WSTR
,
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
,
"got %08x
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
76
,
"got %ld
\n
"
,
dst_len
);
ok
(
dst_len
==
76
,
"got %ld
\n
"
,
dst_len
);
...
@@ -1469,17 +1469,15 @@ static void test_converttowstr(void)
...
@@ -1469,17 +1469,15 @@ static void test_converttowstr(void)
b
=
SysAllocStringLen
(
NULL
,
0
);
b
=
SysAllocStringLen
(
NULL
,
0
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
b
;
V_BSTR
(
&
v
)
=
b
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_VARIANT
,
DBTYPE_WSTR
,
0
,
&
dst_len
,
&
v
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_VARIANT
,
DBTYPE_WSTR
,
0
,
&
dst_len
,
&
v
,
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_status
==
DBSTATUS_S_OK
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
0
,
"got %ld
\n
"
,
dst_len
);
ok
(
dst_len
==
0
,
"got %ld
\n
"
,
dst_len
);
ok
(
dst
!=
NULL
,
"got %p
\n
"
,
dst
);
ok
(
dst
!=
b
,
"got %p src %p
\n
"
,
dst
,
b
);
ok
(
!
lstrcmpW
(
b
,
dst
),
"got %s
\n
"
,
wine_dbgstr_w
(
dst
));
ok
(
!
lstrcmpW
(
b
,
dst
),
"got %s
\n
"
,
wine_dbgstr_w
(
dst
));
VariantClear
(
&
v
);
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_NULL
;
V_VT
(
&
v
)
=
VT_NULL
;
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_VARIANT
,
DBTYPE_WSTR
,
0
,
&
dst_len
,
&
v
,
&
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
hr
=
IDataConvert_DataConvert
(
convert
,
DBTYPE_VARIANT
,
DBTYPE_WSTR
,
0
,
&
dst_len
,
&
v
,
dst
,
sizeof
(
dst
),
0
,
&
dst_status
,
0
,
0
,
0
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
dst_status
==
DBSTATUS_S_ISNULL
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_status
==
DBSTATUS_S_ISNULL
,
"got %08x
\n
"
,
dst_status
);
ok
(
dst_len
==
0
,
"got %ld
\n
"
,
dst_len
);
ok
(
dst_len
==
0
,
"got %ld
\n
"
,
dst_len
);
...
...
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