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
842450e9
Commit
842450e9
authored
Dec 07, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Fix compilation on systems that don't support nameless unions.
parent
90834020
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mimeole.c
dlls/inetcomm/mimeole.c
+5
-4
No files found.
dlls/inetcomm/mimeole.c
View file @
842450e9
...
...
@@ -20,6 +20,7 @@
*/
#define COBJMACROS
#define NONAMELESSUNION
#include <stdarg.h>
#include <stdio.h>
...
...
@@ -343,7 +344,7 @@ static void read_value(header_t *header, char **cur)
}
header
->
value
.
vt
=
VT_LPSTR
;
header
->
value
.
pszVal
=
value
;
header
->
value
.
u
.
pszVal
=
value
;
*
cur
=
end
;
}
...
...
@@ -359,15 +360,15 @@ static void init_content_type(MimeBody *body, header_t *header)
return
;
}
slash
=
strchr
(
header
->
value
.
pszVal
,
'/'
);
slash
=
strchr
(
header
->
value
.
u
.
pszVal
,
'/'
);
if
(
!
slash
)
{
WARN
(
"malformed context type value
\n
"
);
return
;
}
len
=
slash
-
header
->
value
.
pszVal
;
len
=
slash
-
header
->
value
.
u
.
pszVal
;
body
->
content_pri_type
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
+
1
);
memcpy
(
body
->
content_pri_type
,
header
->
value
.
pszVal
,
len
);
memcpy
(
body
->
content_pri_type
,
header
->
value
.
u
.
pszVal
,
len
);
body
->
content_pri_type
[
len
]
=
'\0'
;
body
->
content_sub_type
=
strdupA
(
slash
+
1
);
}
...
...
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