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
c4f1adb7
Commit
c4f1adb7
authored
Jul 26, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jul 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Don't proceed with POST operation (that will fail) if we run out of memory.
parent
d5fedcda
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
protocol.c
dlls/urlmon/tests/protocol.c
+4
-2
No files found.
dlls/urlmon/tests/protocol.c
View file @
c4f1adb7
...
...
@@ -159,6 +159,7 @@ static HRESULT WINAPI HttpNegotiate_BeginningTransaction(IHttpNegotiate2 *iface,
addl_headers
=
CoTaskMemAlloc
(
sizeof
(
wszHeaders
));
if
(
!
addl_headers
)
{
http_post_test
=
FALSE
;
skip
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
...
...
@@ -504,18 +505,19 @@ static HRESULT WINAPI BindInfo_GetBindInfo(IInternetBindInfo *iface, DWORD *grfB
if
(
http_post_test
)
{
pbindinfo
->
dwBindVerb
=
BINDVERB_POST
;
pbindinfo
->
stgmedData
.
tymed
=
TYMED_HGLOBAL
;
/* Must be GMEM_FIXED, GMEM_MOVABLE does not work properly
* with urlmon on native (Win98 and WinXP) */
pbindinfo
->
stgmedData
.
hGlobal
=
GlobalAlloc
(
GPTR
,
sizeof
(
szPostData
));
if
(
!
pbindinfo
->
stgmedData
.
hGlobal
)
{
http_post_test
=
FALSE
;
skip
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
lstrcpy
((
LPSTR
)
pbindinfo
->
stgmedData
.
hGlobal
,
szPostData
);
pbindinfo
->
cbstgmedData
=
sizeof
(
szPostData
)
-
1
;
pbindinfo
->
dwBindVerb
=
BINDVERB_POST
;
pbindinfo
->
stgmedData
.
tymed
=
TYMED_HGLOBAL
;
}
return
S_OK
;
...
...
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