Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Joan Roque-Worcel
wine
Commits
90541731
Commit
90541731
authored
16 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
ntdll/tests: Fix pointer casting warnings on 64-bit.
parent
ddc34141
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/ntdll/tests/atom.c
+8
-8
8 additions, 8 deletions
dlls/ntdll/tests/atom.c
with
8 additions
and
8 deletions
dlls/ntdll/tests/atom.c
+
8
−
8
View file @
90541731
...
...
@@ -295,7 +295,7 @@ static void test_NtIntAtom(void)
RTL_ATOM_TABLE
AtomTable
;
RTL_ATOM
testAtom
;
ULONG
RefCount
=
0
,
PinCount
=
0
;
int
i
;
INT_PTR
i
;
WCHAR
Name
[
64
];
ULONG
Len
;
...
...
@@ -311,25 +311,25 @@ static void test_NtIntAtom(void)
ok
(
res
==
STATUS_INVALID_PARAMETER
,
"Didn't get expected result from adding 0 int atom, retval: %x
\n
"
,
res
);
for
(
i
=
1
;
i
<=
0xbfff
;
i
++
)
{
res
=
pRtlAddAtomToAtomTable
(
AtomTable
,
(
PWSTR
)
i
,
&
testAtom
);
ok
(
!
res
,
"Unable to add valid integer atom %i, retval: %x
\n
"
,
i
,
res
);
res
=
pRtlAddAtomToAtomTable
(
AtomTable
,
(
L
PWSTR
)
i
,
&
testAtom
);
ok
(
!
res
,
"Unable to add valid integer atom %
l
i, retval: %x
\n
"
,
i
,
res
);
}
for
(
i
=
1
;
i
<=
0xbfff
;
i
++
)
{
res
=
pRtlLookupAtomInAtomTable
(
AtomTable
,
(
PWSTR
)
i
,
&
testAtom
);
ok
(
!
res
,
"Unable to find int atom %i, retval: %x
\n
"
,
i
,
res
);
res
=
pRtlLookupAtomInAtomTable
(
AtomTable
,
(
L
PWSTR
)
i
,
&
testAtom
);
ok
(
!
res
,
"Unable to find int atom %
l
i, retval: %x
\n
"
,
i
,
res
);
if
(
!
res
)
{
res
=
pRtlPinAtomInAtomTable
(
AtomTable
,
testAtom
);
ok
(
!
res
,
"Unable to pin int atom %i, retval: %x
\n
"
,
i
,
res
);
ok
(
!
res
,
"Unable to pin int atom %
l
i, retval: %x
\n
"
,
i
,
res
);
}
}
for
(
i
=
0xc000
;
i
<=
0xffff
;
i
++
)
{
res
=
pRtlAddAtomToAtomTable
(
AtomTable
,
(
PWSTR
)
i
,
&
testAtom
);
ok
(
res
,
"Able to illeageal integer atom %i, retval: %x
\n
"
,
i
,
res
);
res
=
pRtlAddAtomToAtomTable
(
AtomTable
,
(
L
PWSTR
)
i
,
&
testAtom
);
ok
(
res
,
"Able to illeageal integer atom %
l
i, retval: %x
\n
"
,
i
,
res
);
}
res
=
pRtlDestroyAtomTable
(
AtomTable
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment