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
90541731
Commit
90541731
authored
Jan 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Fix pointer casting warnings on 64-bit.
parent
ddc34141
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
atom.c
dlls/ntdll/tests/atom.c
+8
-8
No files found.
dlls/ntdll/tests/atom.c
View file @
90541731
...
@@ -295,7 +295,7 @@ static void test_NtIntAtom(void)
...
@@ -295,7 +295,7 @@ static void test_NtIntAtom(void)
RTL_ATOM_TABLE
AtomTable
;
RTL_ATOM_TABLE
AtomTable
;
RTL_ATOM
testAtom
;
RTL_ATOM
testAtom
;
ULONG
RefCount
=
0
,
PinCount
=
0
;
ULONG
RefCount
=
0
,
PinCount
=
0
;
int
i
;
INT_PTR
i
;
WCHAR
Name
[
64
];
WCHAR
Name
[
64
];
ULONG
Len
;
ULONG
Len
;
...
@@ -311,25 +311,25 @@ static void test_NtIntAtom(void)
...
@@ -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
);
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
++
)
for
(
i
=
1
;
i
<=
0xbfff
;
i
++
)
{
{
res
=
pRtlAddAtomToAtomTable
(
AtomTable
,
(
PWSTR
)
i
,
&
testAtom
);
res
=
pRtlAddAtomToAtomTable
(
AtomTable
,
(
L
PWSTR
)
i
,
&
testAtom
);
ok
(
!
res
,
"Unable to add valid integer atom %i, retval: %x
\n
"
,
i
,
res
);
ok
(
!
res
,
"Unable to add valid integer atom %
l
i, retval: %x
\n
"
,
i
,
res
);
}
}
for
(
i
=
1
;
i
<=
0xbfff
;
i
++
)
for
(
i
=
1
;
i
<=
0xbfff
;
i
++
)
{
{
res
=
pRtlLookupAtomInAtomTable
(
AtomTable
,
(
PWSTR
)
i
,
&
testAtom
);
res
=
pRtlLookupAtomInAtomTable
(
AtomTable
,
(
L
PWSTR
)
i
,
&
testAtom
);
ok
(
!
res
,
"Unable to find int atom %i, retval: %x
\n
"
,
i
,
res
);
ok
(
!
res
,
"Unable to find int atom %
l
i, retval: %x
\n
"
,
i
,
res
);
if
(
!
res
)
if
(
!
res
)
{
{
res
=
pRtlPinAtomInAtomTable
(
AtomTable
,
testAtom
);
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
++
)
for
(
i
=
0xc000
;
i
<=
0xffff
;
i
++
)
{
{
res
=
pRtlAddAtomToAtomTable
(
AtomTable
,
(
PWSTR
)
i
,
&
testAtom
);
res
=
pRtlAddAtomToAtomTable
(
AtomTable
,
(
L
PWSTR
)
i
,
&
testAtom
);
ok
(
res
,
"Able to illeageal integer atom %i, retval: %x
\n
"
,
i
,
res
);
ok
(
res
,
"Able to illeageal integer atom %
l
i, retval: %x
\n
"
,
i
,
res
);
}
}
res
=
pRtlDestroyAtomTable
(
AtomTable
);
res
=
pRtlDestroyAtomTable
(
AtomTable
);
...
...
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