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
9801818f
Commit
9801818f
authored
Oct 20, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Clear the full atom structure before every test.
parent
7c1f6656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
atom.c
dlls/ntdll/tests/atom.c
+3
-3
No files found.
dlls/ntdll/tests/atom.c
View file @
9801818f
...
...
@@ -443,7 +443,7 @@ static void test_Global(void)
ok
(
!
res
,
"Added atom (%x)
\n
"
,
res
);
memset
(
abi
->
Name
,
0xcc
,
255
*
sizeof
(
WCHAR
)
);
memset
(
ptr
,
0xcc
,
sizeof
(
ptr
)
);
res
=
pNtQueryInformationAtom
(
atom
,
AtomBasicInformation
,
(
void
*
)
ptr
,
ptr_size
,
NULL
);
ok
(
!
res
,
"atom lookup
\n
"
);
ok
(
!
lstrcmpW
(
abi
->
Name
,
testAtom1
),
"ok strings
\n
"
);
...
...
@@ -457,7 +457,7 @@ static void test_Global(void)
ok
(
abi
->
NameLength
==
lstrlenW
(
testAtom1
)
*
sizeof
(
WCHAR
)
||
broken
(
abi
->
NameLength
==
sizeof
(
WCHAR
)),
/* nt4 */
"string length %u
\n
"
,
abi
->
NameLength
);
memset
(
abi
->
Name
,
0xcc
,
lstrlenW
(
testAtom1
)
*
sizeof
(
WCHAR
)
);
memset
(
ptr
,
0xcc
,
sizeof
(
ptr
)
);
ptr_size
=
sizeof
(
ATOM_BASIC_INFORMATION
)
+
lstrlenW
(
testAtom1
)
*
sizeof
(
WCHAR
);
res
=
pNtQueryInformationAtom
(
atom
,
AtomBasicInformation
,
(
void
*
)
ptr
,
ptr_size
,
NULL
);
ok
(
!
res
,
"atom lookup %x
\n
"
,
res
);
...
...
@@ -466,8 +466,8 @@ static void test_Global(void)
ok
(
abi
->
Name
[
lstrlenW
(
testAtom1
)]
==
0
,
"buffer overwrite %x
\n
"
,
abi
->
Name
[
lstrlenW
(
testAtom1
)]);
ok
(
abi
->
Name
[
lstrlenW
(
testAtom1
)
+
1
]
==
0xcccc
,
"buffer overwrite %x
\n
"
,
abi
->
Name
[
lstrlenW
(
testAtom1
)
+
1
]);
memset
(
ptr
,
0xcc
,
sizeof
(
ptr
)
);
ptr_size
=
sizeof
(
ATOM_BASIC_INFORMATION
)
+
4
*
sizeof
(
WCHAR
);
abi
->
Name
[
0
]
=
abi
->
Name
[
1
]
=
abi
->
Name
[
2
]
=
abi
->
Name
[
3
]
=
'\0'
;
res
=
pNtQueryInformationAtom
(
atom
,
AtomBasicInformation
,
(
void
*
)
ptr
,
ptr_size
,
NULL
);
ok
(
!
res
,
"couldn't find atom
\n
"
);
ok
(
abi
->
NameLength
==
8
,
"wrong string length %u
\n
"
,
abi
->
NameLength
);
...
...
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