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
221c115e
Commit
221c115e
authored
Jan 29, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix some of the heap tests for 64-bit.
parent
7ffb1c10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
heap.c
dlls/kernel32/tests/heap.c
+5
-3
No files found.
dlls/kernel32/tests/heap.c
View file @
221c115e
...
...
@@ -42,7 +42,8 @@ static ULONG (WINAPI *pRtlGetNtGlobalFlags)(void);
struct
heap_layout
{
DWORD
unknown
[
3
];
DWORD_PTR
unknown
[
2
];
DWORD
pattern
;
DWORD
flags
;
DWORD
force_flags
;
};
...
...
@@ -488,7 +489,7 @@ static void test_heap_checks( DWORD flags )
{
BYTE
old
,
*
p
,
*
p2
;
BOOL
ret
;
SIZE_T
i
,
size
,
large_size
=
8
00
*
1024
+
37
;
SIZE_T
i
,
size
,
large_size
=
30
00
*
1024
+
37
;
if
(
flags
&
HEAP_PAGE_ALLOCS
)
return
;
/* no tests for that case yet */
trace
(
"testing heap flags %08x
\n
"
,
flags
);
...
...
@@ -751,7 +752,7 @@ static void test_child_heap( const char *arg )
expect_heap
=
heap_flags_from_global_flag
(
expected
);
if
(
!
(
heap
->
flags
&
HEAP_GROWABLE
)
||
heap
->
flags
==
0xeeeeeeee
)
/* vista layout */
if
(
!
(
heap
->
flags
&
HEAP_GROWABLE
)
||
heap
->
pattern
==
0xffeeffee
||
heap
->
pattern
==
0xeeeeeeee
)
/* vista layout */
{
if
(
expected
&
FLG_HEAP_PAGE_ALLOCS
)
ok
(
heap
->
flags
==
0xeeeeeeee
,
"%s: got heap flags %08x expected 0xeeeeeeee
\n
"
,
...
...
@@ -765,6 +766,7 @@ static void test_child_heap( const char *arg )
"%s: got heap flags %08x expected %08x
\n
"
,
arg
,
heap
->
flags
,
expect_heap
);
ok
(
heap
->
force_flags
==
(
expect_heap
&
~
0x18000080
),
"%s: got heap force flags %08x expected %08x
\n
"
,
arg
,
heap
->
force_flags
,
expect_heap
);
expect_heap
=
heap
->
flags
;
}
test_heap_checks
(
expect_heap
);
...
...
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