Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
da2a97fc
Commit
da2a97fc
authored
Oct 04, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Use BOOL type where appropriate.
parent
2bbe7a33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
mimeole.c
dlls/inetcomm/mimeole.c
+9
-10
No files found.
dlls/inetcomm/mimeole.c
View file @
da2a97fc
...
...
@@ -137,7 +137,7 @@ static HRESULT copy_headers_to_buf(IStream *stm, char **ptr)
char
*
buf
=
NULL
;
DWORD
size
=
PARSER_BUF_SIZE
,
offset
=
0
,
last_end
=
0
;
HRESULT
hr
;
int
done
=
0
;
BOOL
done
=
FALSE
;
*
ptr
=
NULL
;
...
...
@@ -165,7 +165,7 @@ static HRESULT copy_headers_to_buf(IStream *stm, char **ptr)
offset
+=
read
;
buf
[
offset
]
=
'\0'
;
if
(
read
==
0
)
done
=
1
;
if
(
read
==
0
)
done
=
TRUE
;
while
(
!
done
&&
(
end
=
strstr
(
buf
+
last_end
,
"
\r\n
"
)))
{
...
...
@@ -176,7 +176,7 @@ static HRESULT copy_headers_to_buf(IStream *stm, char **ptr)
off
.
QuadPart
=
new_end
;
IStream_Seek
(
stm
,
off
,
STREAM_SEEK_SET
,
NULL
);
buf
[
new_end
]
=
'\0'
;
done
=
1
;
done
=
TRUE
;
}
else
last_end
=
new_end
;
...
...
@@ -271,14 +271,14 @@ static void unfold_header(char *header, int len)
static
char
*
unquote_string
(
const
char
*
str
)
{
int
quoted
=
0
;
BOOL
quoted
=
FALSE
;
char
*
ret
,
*
cp
;
while
(
*
str
==
' '
||
*
str
==
'\t'
)
str
++
;
if
(
*
str
==
'"'
)
{
quoted
=
1
;
quoted
=
TRUE
;
str
++
;
}
ret
=
strdupA
(
str
);
...
...
@@ -334,20 +334,19 @@ static void add_param(header_t *header, const char *p)
static
void
split_params
(
header_t
*
header
,
char
*
value
)
{
char
*
cp
=
value
,
*
start
=
value
;
int
in_quote
=
0
;
int
done_value
=
0
;
BOOL
in_quotes
=
FALSE
,
done_value
=
FALSE
;
while
(
*
cp
)
{
if
(
!
in_quote
&&
*
cp
==
';'
)
if
(
!
in_quote
s
&&
*
cp
==
';'
)
{
*
cp
=
'\0'
;
if
(
done_value
)
add_param
(
header
,
start
);
done_value
=
1
;
done_value
=
TRUE
;
start
=
cp
+
1
;
}
else
if
(
*
cp
==
'"'
)
in_quote
=
!
in_quote
;
in_quote
s
=
!
in_quotes
;
cp
++
;
}
if
(
done_value
)
add_param
(
header
,
start
);
...
...
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