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
a8b63acc
Commit
a8b63acc
authored
Jan 24, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Use assignment instead of memcpy to copy structs.
parent
ab542a92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cpp.c
dlls/msvcrt/tests/cpp.c
+2
-2
No files found.
dlls/msvcrt/tests/cpp.c
View file @
a8b63acc
...
...
@@ -967,7 +967,7 @@ static void test_rtti(void)
call_func1
(
pexception_dtor
,
&
e
);
call_func1
(
pbad_typeid_dtor
,
&
b
);
memcpy
(
&
simple_class_sig0_rtti
,
&
simple_class_rtti
,
sizeof
(
struct
rtti_data
))
;
simple_class_sig0_rtti
=
simple_class_rtti
;
simple_class_sig0_rtti
.
object_locator
.
signature
=
0
;
simple_class_sig0_rtti
.
base_descriptor
[
0
].
type_descriptor
=
RTTI_REF_SIG0
(
simple_class_sig0_rtti
,
type_info
[
0
],
base
);
simple_class_sig0_rtti
.
base_array
.
bases
[
0
]
=
RTTI_REF_SIG0
(
simple_class_sig0_rtti
,
base_descriptor
[
0
],
base
);
...
...
@@ -975,7 +975,7 @@ static void test_rtti(void)
simple_class_sig0_rtti
.
object_locator
.
type_descriptor
=
RTTI_REF_SIG0
(
simple_class_sig0_rtti
,
type_info
[
0
],
base
);
simple_class_sig0_rtti
.
object_locator
.
type_hierarchy
=
RTTI_REF_SIG0
(
simple_class_sig0_rtti
,
object_hierarchy
,
base
);
memcpy
(
&
child_class_sig0_rtti
,
&
child_class_rtti
,
sizeof
(
struct
rtti_data
))
;
child_class_sig0_rtti
=
child_class_rtti
;
child_class_sig0_rtti
.
object_locator
.
signature
=
0
;
child_class_sig0_rtti
.
base_descriptor
[
0
].
type_descriptor
=
RTTI_REF_SIG0
(
child_class_sig0_rtti
,
type_info
[
1
],
base
);
child_class_sig0_rtti
.
base_descriptor
[
1
].
type_descriptor
=
RTTI_REF_SIG0
(
child_class_sig0_rtti
,
type_info
[
0
],
base
);
...
...
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