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
988be5dd
Commit
988be5dd
authored
Aug 08, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Fix compilation on systems that don't support nameless unions.
parent
f0452435
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
http.c
dlls/urlmon/http.c
+2
-1
protocol.c
dlls/urlmon/tests/protocol.c
+3
-3
No files found.
dlls/urlmon/http.c
View file @
988be5dd
...
...
@@ -25,6 +25,7 @@
#include <stdarg.h>
#define COBJMACROS
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
...
...
@@ -516,7 +517,7 @@ static HRESULT WINAPI HttpProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl
WARN
(
"Expected This->bind_info.stgmedData.tymed to be TYMED_HGLOBAL, not %d
\n
"
,
This
->
bind_info
.
stgmedData
.
tymed
);
else
optional
=
(
LPWSTR
)
This
->
bind_info
.
stgmedData
.
hGlobal
;
optional
=
(
LPWSTR
)
This
->
bind_info
.
stgmedData
.
u
.
hGlobal
;
}
if
(
!
HttpSendRequestW
(
This
->
request
,
This
->
full_header
,
lstrlenW
(
This
->
full_header
),
optional
,
...
...
dlls/urlmon/tests/protocol.c
View file @
988be5dd
...
...
@@ -547,14 +547,14 @@ static HRESULT WINAPI BindInfo_GetBindInfo(IInternetBindInfo *iface, DWORD *grfB
{
/* 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
)
U
(
pbindinfo
->
stgmedData
)
.
hGlobal
=
GlobalAlloc
(
GPTR
,
sizeof
(
szPostData
));
if
(
!
U
(
pbindinfo
->
stgmedData
)
.
hGlobal
)
{
http_post_test
=
FALSE
;
skip
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
lstrcpy
((
LPSTR
)
pbindinfo
->
stgmedData
.
hGlobal
,
szPostData
);
lstrcpy
((
LPSTR
)
U
(
pbindinfo
->
stgmedData
)
.
hGlobal
,
szPostData
);
pbindinfo
->
cbstgmedData
=
sizeof
(
szPostData
)
-
1
;
pbindinfo
->
dwBindVerb
=
BINDVERB_POST
;
pbindinfo
->
stgmedData
.
tymed
=
TYMED_HGLOBAL
;
...
...
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