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
72a3f183
Commit
72a3f183
authored
Sep 16, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Sep 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Return TRUE for all pointer params in GlobalUnlock.
parent
40dff81b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
17 deletions
+13
-17
heap.c
dlls/kernel32/heap.c
+1
-1
heap.c
dlls/kernel32/tests/heap.c
+8
-0
dde.c
dlls/user32/tests/dde.c
+4
-16
No files found.
dlls/kernel32/heap.c
View file @
72a3f183
...
...
@@ -480,7 +480,7 @@ BOOL WINAPI GlobalUnlock(HGLOBAL hmem)
PGLOBAL32_INTERN
pintern
;
BOOL
locked
;
if
(
ISPOINTER
(
hmem
))
return
FALS
E
;
if
(
ISPOINTER
(
hmem
))
return
TRU
E
;
RtlLockHeap
(
GetProcessHeap
());
__TRY
...
...
dlls/kernel32/tests/heap.c
View file @
72a3f183
...
...
@@ -189,6 +189,14 @@ START_TEST(heap)
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"Expected ERROR_INVALID_HANDLE, got %d
\n
"
,
GetLastError
());
gbl
=
GlobalAlloc
(
GMEM_DDESHARE
,
100
);
res
=
GlobalUnlock
(
gbl
);
ok
(
res
==
1
,
"Expected 1, got %d
\n
"
,
res
);
res
=
GlobalUnlock
(
gbl
);
ok
(
res
==
1
,
"Expected 1, got %d
\n
"
,
res
);
/* ####################################### */
/* Local*() functions */
gbl
=
LocalAlloc
(
LMEM_MOVEABLE
,
0
);
...
...
dlls/user32/tests/dde.c
View file @
72a3f183
...
...
@@ -492,10 +492,7 @@ static void test_PackDDElParam(void)
ok
(
ptr
[
1
]
==
0xbeef
,
"Expected 0xbeef, got %08lx
\n
"
,
ptr
[
1
]);
ret
=
GlobalUnlock
((
HGLOBAL
)
lparam
);
todo_wine
{
ok
(
ret
==
1
,
"Expected 1, got %d
\n
"
,
ret
);
}
ok
(
ret
==
1
,
"Expected 1, got %d
\n
"
,
ret
);
lo
=
hi
=
0
;
ret
=
UnpackDDElParam
(
WM_DDE_ADVISE
,
lparam
,
&
lo
,
&
hi
);
...
...
@@ -534,10 +531,7 @@ static void test_PackDDElParam(void)
ok
(
ptr
[
1
]
==
0xbeef
,
"Expected 0xbeef, got %08lx
\n
"
,
ptr
[
1
]);
ret
=
GlobalUnlock
((
HGLOBAL
)
lparam
);
todo_wine
{
ok
(
ret
==
1
,
"Expected 1, got %d
\n
"
,
ret
);
}
ok
(
ret
==
1
,
"Expected 1, got %d
\n
"
,
ret
);
lo
=
hi
=
0
;
ret
=
UnpackDDElParam
(
WM_DDE_ACK
,
lparam
,
&
lo
,
&
hi
);
...
...
@@ -560,10 +554,7 @@ static void test_PackDDElParam(void)
ok
(
ptr
[
1
]
==
0xbeef
,
"Expected 0xbeef, got %08lx
\n
"
,
ptr
[
1
]);
ret
=
GlobalUnlock
((
HGLOBAL
)
lparam
);
todo_wine
{
ok
(
ret
==
1
,
"Expected 1, got %d
\n
"
,
ret
);
}
ok
(
ret
==
1
,
"Expected 1, got %d
\n
"
,
ret
);
lo
=
hi
=
0
;
ret
=
UnpackDDElParam
(
WM_DDE_DATA
,
lparam
,
&
lo
,
&
hi
);
...
...
@@ -602,10 +593,7 @@ static void test_PackDDElParam(void)
ok
(
ptr
[
1
]
==
0xbeef
,
"Expected 0xbeef, got %08lx
\n
"
,
ptr
[
1
]);
ret
=
GlobalUnlock
((
HGLOBAL
)
lparam
);
todo_wine
{
ok
(
ret
==
1
,
"Expected 1, got %d
\n
"
,
ret
);
}
ok
(
ret
==
1
,
"Expected 1, got %d
\n
"
,
ret
);
lo
=
hi
=
0
;
ret
=
UnpackDDElParam
(
WM_DDE_POKE
,
lparam
,
&
lo
,
&
hi
);
...
...
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