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
7b3550fb
Commit
7b3550fb
authored
Aug 31, 2021
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 31, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Add support for RECORD_BYTES32_TEXT in write_text_bin().
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
375854ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
writer.c
dlls/webservices/writer.c
+20
-0
No files found.
dlls/webservices/writer.c
View file @
7b3550fb
...
...
@@ -2766,6 +2766,26 @@ static HRESULT write_text_bin( struct writer *writer, const WS_XML_TEXT *text, U
}
return
S_OK
;
}
case
RECORD_BYTES32_TEXT
:
{
const
WS_XML_BASE64_TEXT
*
text_base64
=
(
const
WS_XML_BASE64_TEXT
*
)
text
;
UINT32
rem
=
text_base64
->
length
%
3
,
len
=
text_base64
->
length
-
rem
;
if
(
len
)
{
if
((
hr
=
write_grow_buffer
(
writer
,
1
+
sizeof
(
len
)
+
len
))
!=
S_OK
)
return
hr
;
write_char
(
writer
,
rem
?
RECORD_BYTES32_TEXT
:
RECORD_BYTES32_TEXT_WITH_ENDELEMENT
);
write_bytes
(
writer
,
(
const
BYTE
*
)
&
len
,
sizeof
(
len
)
);
write_bytes
(
writer
,
text_base64
->
bytes
,
len
);
}
if
(
rem
)
{
if
((
hr
=
write_grow_buffer
(
writer
,
3
))
!=
S_OK
)
return
hr
;
write_char
(
writer
,
RECORD_BYTES8_TEXT_WITH_ENDELEMENT
);
write_char
(
writer
,
rem
);
write_bytes
(
writer
,
(
const
BYTE
*
)
text_base64
->
bytes
+
len
,
rem
);
}
return
S_OK
;
}
case
RECORD_ZERO_TEXT_WITH_ENDELEMENT
:
case
RECORD_ONE_TEXT_WITH_ENDELEMENT
:
case
RECORD_FALSE_TEXT_WITH_ENDELEMENT
:
...
...
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