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
b395a0c5
Commit
b395a0c5
authored
Jun 04, 2004
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Jun 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win9x does not convert FIXED to MOVEABLE. It also discards locked
memory.
parent
4b6ed4ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
alloc.c
dlls/kernel/tests/alloc.c
+6
-6
No files found.
dlls/kernel/tests/alloc.c
View file @
b395a0c5
...
...
@@ -208,13 +208,12 @@ static void test_Global(void)
/* Check that GlobalReAlloc works */
/* Check that we can change GMEM_FIXED to GMEM_MOVEABLE */
mem2a
=
GlobalReAlloc
(
mem2
,
0
,
GMEM_MODIFY
|
GMEM_MOVEABLE
);
ok
(
mem2a
!=
NULL
,
"GlobalReAlloc failed to convert FIXED to MOVEABLE: error=%ld
\n
"
,
GetLastError
());
if
(
mem2a
!=
NULL
)
{
mem2
=
mem2a
;
mem2ptr
=
GlobalLock
(
mem2a
);
ok
(
mem2ptr
!=
NULL
&&
!
GlobalUnlock
(
mem2a
)
&&
GetLastError
()
==
NO_ERROR
,
"Converting from FIXED to MOVEABLE didn't REALLY work
\n
"
);
}
mem2ptr
=
GlobalLock
(
mem2a
);
ok
(
mem2ptr
!=
NULL
&&
!
GlobalUnlock
(
mem2a
)
&&
GetLastError
()
==
NO_ERROR
,
"Converting from FIXED to MOVEABLE didn't REALLY work
\n
"
);
/* Check that ReAllocing memory works as expected */
mem2a
=
GlobalReAlloc
(
mem2
,
2
*
memchunk
,
GMEM_MOVEABLE
|
GMEM_ZEROINIT
);
...
...
@@ -238,8 +237,9 @@ static void test_Global(void)
/* Check that we can't discard locked memory */
mem2b
=
GlobalDiscard
(
mem2a
);
ok
(
mem2b
==
NULL
,
"Discarded memory we shouldn't have
\n
"
);
ok
(
!
GlobalUnlock
(
mem2a
)
&&
GetLastError
()
==
NO_ERROR
,
"GlobalUnlock Failed
\n
"
);
if
(
mem2b
==
NULL
)
{
ok
(
!
GlobalUnlock
(
mem2a
)
&&
GetLastError
()
==
NO_ERROR
,
"GlobalUnlock Failed
\n
"
);
}
}
}
if
(
mem1
)
{
...
...
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