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
6faa530e
Commit
6faa530e
authored
Aug 11, 2020
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Allow SetSize to move a fixed memory block.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
63dd8743
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
hglobalstream.c
dlls/ole32/hglobalstream.c
+1
-1
hglobalstream.c
dlls/ole32/tests/hglobalstream.c
+0
-4
No files found.
dlls/ole32/hglobalstream.c
View file @
6faa530e
...
...
@@ -426,7 +426,7 @@ static HRESULT WINAPI HGLOBALStreamImpl_SetSize(
/*
* Re allocate the HGlobal to fit the new size of the stream.
*/
supportHandle
=
GlobalReAlloc
(
This
->
handle
->
hglobal
,
libNewSize
.
u
.
LowPart
,
0
);
supportHandle
=
GlobalReAlloc
(
This
->
handle
->
hglobal
,
libNewSize
.
u
.
LowPart
,
GMEM_MOVEABLE
);
if
(
supportHandle
==
0
)
return
E_OUTOFMEMORY
;
...
...
dlls/ole32/tests/hglobalstream.c
View file @
6faa530e
...
...
@@ -625,20 +625,16 @@ static void test_IStream_Clone(void)
newsize
.
QuadPart
=
0x8000
;
hr
=
IStream_SetSize
(
stream
,
newsize
);
todo_wine
ok
(
hr
==
S_OK
,
"unexpected %#x
\n
"
,
hr
);
stream_info
(
stream
,
&
hmem
,
&
size
,
&
pos
);
ok
(
hmem
!=
0
,
"unexpected %p
\n
"
,
hmem
);
todo_wine
ok
(
hmem
!=
orig_hmem
,
"unexpected %p
\n
"
,
hmem
);
todo_wine
ok
(
size
==
0x8000
,
"unexpected %#x
\n
"
,
size
);
ok
(
pos
==
0
,
"unexpected %d
\n
"
,
pos
);
stream_info
(
clone
,
&
hmem_clone
,
&
size
,
&
pos
);
ok
(
hmem_clone
==
hmem
,
"handles should match
\n
"
);
todo_wine
ok
(
size
==
0x8000
,
"unexpected %#x
\n
"
,
size
);
ok
(
pos
==
0
,
"unexpected %d
\n
"
,
pos
);
...
...
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