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
b7b28159
Commit
b7b28159
authored
May 08, 2009
by
Austin English
Committed by
Alexandre Julliard
May 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Sign compare fixes.
parent
5f9e19b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
data.c
dlls/msvcrt/tests/data.c
+1
-1
heap.c
dlls/msvcrt/tests/heap.c
+4
-4
No files found.
dlls/msvcrt/tests/data.c
View file @
b7b28159
...
...
@@ -74,7 +74,7 @@ static void test_initvar( HMODULE hmsvcrt )
int
*
(
*
pp_winmajor
)()
=
(
int
*
(
*
)())
GetProcAddress
(
hmsvcrt
,
"__p__winmajor"
);
int
*
(
*
pp_winminor
)()
=
(
int
*
(
*
)())
GetProcAddress
(
hmsvcrt
,
"__p__winminor"
);
int
*
(
*
pp_osver
)()
=
(
int
*
(
*
)())
GetProcAddress
(
hmsvcrt
,
"__p__osver"
);
int
winver
,
winmajor
,
winminor
,
osver
;
unsigned
int
winver
,
winmajor
,
winminor
,
osver
;
if
(
!
(
pp_winmajor
&&
pp_winminor
&&
pp_winver
))
{
win_skip
(
"_winver variables are not available
\n
"
);
...
...
dlls/msvcrt/tests/heap.c
View file @
b7b28159
...
...
@@ -103,7 +103,7 @@ static void test_aligned_realloc(unsigned int size1, unsigned int size2, unsigne
mem1
=
malloc
(
size1
);
if
(
mem1
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
size1
;
i
++
)
((
char
*
)
mem
)[
i
]
=
i
+
1
;
memcpy
(
mem1
,
mem
,
size1
);
...
...
@@ -138,7 +138,7 @@ static void test_aligned_realloc(unsigned int size1, unsigned int size2, unsigne
ok
(
memcmp
(
mem2
,
mem1
,
min
(
size1
,
size2
))
==
0
,
"_aligned_realloc(%p, %d, %d) has different data
\n
"
,
mem
,
size2
,
alignment
);
if
(
memcmp
(
mem2
,
mem1
,
min
(
size1
,
size2
))
&&
winetest_debug
>
1
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
min
(
size1
,
size2
);
i
++
)
{
if
(((
char
*
)
mem2
)[
i
]
!=
((
char
*
)
mem1
)[
i
])
...
...
@@ -175,7 +175,7 @@ static void test_aligned_offset_realloc(unsigned int size1, unsigned int size2,
mem1
=
malloc
(
size1
);
if
(
mem1
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
size1
;
i
++
)
((
char
*
)
mem
)[
i
]
=
i
+
1
;
memcpy
(
mem1
,
mem
,
size1
);
...
...
@@ -211,7 +211,7 @@ static void test_aligned_offset_realloc(unsigned int size1, unsigned int size2,
ok
(
memcmp
(
mem2
,
mem1
,
min
(
size1
,
size2
))
==
0
,
"_aligned_offset_realloc(%p, %d, %d, %d) has different data
\n
"
,
mem
,
size2
,
alignment
,
offset
);
if
(
memcmp
(
mem2
,
mem1
,
min
(
size1
,
size2
))
&&
winetest_debug
>
1
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
min
(
size1
,
size2
);
i
++
)
{
if
(((
char
*
)
mem2
)[
i
]
!=
((
char
*
)
mem1
)[
i
])
...
...
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