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
fb883d86
Commit
fb883d86
authored
Dec 17, 2006
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix SetSize for HGLOBAL streams in the case of being out-of-memory.
parent
fda64982
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
hglobalstream.c
dlls/ole32/hglobalstream.c
+1
-1
hglobalstream.c
dlls/ole32/tests/hglobalstream.c
+0
-2
No files found.
dlls/ole32/hglobalstream.c
View file @
fb883d86
...
...
@@ -426,7 +426,7 @@ static HRESULT WINAPI HGLOBALStreamImpl_SetSize(
supportHandle
=
GlobalReAlloc
(
This
->
supportHandle
,
libNewSize
.
u
.
LowPart
,
0
);
if
(
supportHandle
==
0
)
return
STG_E_MEDIUMFULL
;
return
E_OUTOFMEMORY
;
This
->
supportHandle
=
supportHandle
;
This
->
streamSize
.
u
.
LowPart
=
libNewSize
.
u
.
LowPart
;
...
...
dlls/ole32/tests/hglobalstream.c
View file @
fb883d86
...
...
@@ -79,9 +79,7 @@ static void test_streamonhglobal(IStream *pStream)
ull
.
u
.
HighPart
=
-
1
;
ull
.
u
.
LowPart
=
-
1
;
hr
=
IStream_SetSize
(
pStream
,
ull
);
todo_wine
{
ok
(
hr
==
E_OUTOFMEMORY
,
"IStream_SetSize with large size should have returned E_OUTOFMEMORY instead of 0x%08x
\n
"
,
hr
);
}
}
START_TEST
(
hglobalstream
)
...
...
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