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
4d41bdd1
Commit
4d41bdd1
authored
Feb 05, 2011
by
Joris Huizer
Committed by
Alexandre Julliard
Feb 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Remove helper variable i (Clang).
parent
6816aa29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
base64.c
dlls/crypt32/base64.c
+10
-12
No files found.
dlls/crypt32/base64.c
View file @
4d41bdd1
...
...
@@ -498,14 +498,13 @@ static inline BYTE decodeBase64Byte(int c)
static
LONG
decodeBase64Block
(
const
char
*
in_buf
,
int
in_len
,
const
char
**
nextBlock
,
PBYTE
out_buf
,
DWORD
*
out_len
)
{
int
len
=
in_len
,
i
;
int
len
=
in_len
;
const
char
*
d
=
in_buf
;
int
ip0
,
ip1
,
ip2
,
ip3
;
if
(
len
<
4
)
return
ERROR_INVALID_DATA
;
i
=
0
;
if
(
d
[
2
]
==
'='
)
{
if
((
ip0
=
decodeBase64Byte
(
d
[
0
]))
>
63
)
...
...
@@ -514,8 +513,8 @@ static LONG decodeBase64Block(const char *in_buf, int in_len,
return
ERROR_INVALID_DATA
;
if
(
out_buf
)
out_buf
[
i
]
=
(
ip0
<<
2
)
|
(
ip1
>>
4
);
i
++
;
out_buf
[
0
]
=
(
ip0
<<
2
)
|
(
ip1
>>
4
);
*
out_len
=
1
;
}
else
if
(
d
[
3
]
==
'='
)
{
...
...
@@ -528,10 +527,10 @@ static LONG decodeBase64Block(const char *in_buf, int in_len,
if
(
out_buf
)
{
out_buf
[
i
+
0
]
=
(
ip0
<<
2
)
|
(
ip1
>>
4
);
out_buf
[
i
+
1
]
=
(
ip1
<<
4
)
|
(
ip2
>>
2
);
out_buf
[
0
]
=
(
ip0
<<
2
)
|
(
ip1
>>
4
);
out_buf
[
1
]
=
(
ip1
<<
4
)
|
(
ip2
>>
2
);
}
i
+
=
2
;
*
out_len
=
2
;
}
else
{
...
...
@@ -546,11 +545,11 @@ static LONG decodeBase64Block(const char *in_buf, int in_len,
if
(
out_buf
)
{
out_buf
[
i
+
0
]
=
(
ip0
<<
2
)
|
(
ip1
>>
4
);
out_buf
[
i
+
1
]
=
(
ip1
<<
4
)
|
(
ip2
>>
2
);
out_buf
[
i
+
2
]
=
(
ip2
<<
6
)
|
ip3
;
out_buf
[
0
]
=
(
ip0
<<
2
)
|
(
ip1
>>
4
);
out_buf
[
1
]
=
(
ip1
<<
4
)
|
(
ip2
>>
2
);
out_buf
[
2
]
=
(
ip2
<<
6
)
|
ip3
;
}
i
+
=
3
;
*
out_len
=
3
;
}
if
(
len
>=
6
&&
d
[
4
]
==
'\r'
&&
d
[
5
]
==
'\n'
)
*
nextBlock
=
d
+
6
;
...
...
@@ -560,7 +559,6 @@ static LONG decodeBase64Block(const char *in_buf, int in_len,
*
nextBlock
=
d
+
4
;
else
*
nextBlock
=
NULL
;
*
out_len
=
i
;
return
ERROR_SUCCESS
;
}
...
...
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