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
5d886557
Commit
5d886557
authored
Dec 30, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Remove unneeded casts.
parent
46b6f43f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
cert.c
dlls/crypt32/cert.c
+1
-2
protectdata.c
dlls/crypt32/protectdata.c
+7
-8
store.c
dlls/crypt32/store.c
+1
-1
str.c
dlls/crypt32/str.c
+1
-1
No files found.
dlls/crypt32/cert.c
View file @
5d886557
...
...
@@ -831,8 +831,7 @@ DWORD WINAPI CertGetPublicKeyLength(DWORD dwCertEncodingType,
if
(
ret
)
{
RSAPUBKEY
*
rsaPubKey
=
(
RSAPUBKEY
*
)((
LPBYTE
)
buf
+
sizeof
(
BLOBHEADER
));
RSAPUBKEY
*
rsaPubKey
=
(
RSAPUBKEY
*
)(
buf
+
sizeof
(
BLOBHEADER
));
len
=
rsaPubKey
->
bitlen
;
LocalFree
(
buf
);
...
...
dlls/crypt32/protectdata.c
View file @
5d886557
...
...
@@ -331,7 +331,7 @@ BOOL serialize(const struct protect_data_t *pInfo, DATA_BLOB *pSerial)
if
(
ptr
-
pSerial
->
pbData
!=
dwStruct
)
{
ERR
(
"struct size changed!? %u != expected %u
\n
"
,
ptr
-
pSerial
->
pbData
,
(
unsigned
int
)
dwStruct
);
ptr
-
pSerial
->
pbData
,
dwStruct
);
LocalFree
(
pSerial
->
pbData
);
pSerial
->
pbData
=
NULL
;
pSerial
->
cbData
=
0
;
...
...
@@ -476,8 +476,7 @@ BOOL unserialize(const DATA_BLOB *pSerial, struct protect_data_t *pInfo)
{
/* this is an impossible-to-reach test, but if the padding
* issue is ever understood, this may become more useful */
ERR
(
"loaded corrupt structure! (used %u expected %u)
\n
"
,
(
unsigned
int
)
index
,
(
unsigned
int
)
size
);
ERR
(
"loaded corrupt structure! (used %u expected %u)
\n
"
,
index
,
size
);
status
=
FALSE
;
}
...
...
@@ -776,15 +775,15 @@ report(const DATA_BLOB* pDataIn, const DATA_BLOB* pOptionalEntropy,
TRACE
(
"pPromptStruct: %p
\n
"
,
pPromptStruct
);
if
(
pPromptStruct
)
{
TRACE
(
" cbSize: 0x%x
\n
"
,
(
unsigned
int
)
pPromptStruct
->
cbSize
);
TRACE
(
" dwPromptFlags: 0x%x
\n
"
,
(
unsigned
int
)
pPromptStruct
->
dwPromptFlags
);
TRACE
(
" cbSize: 0x%x
\n
"
,
pPromptStruct
->
cbSize
);
TRACE
(
" dwPromptFlags: 0x%x
\n
"
,
pPromptStruct
->
dwPromptFlags
);
TRACE
(
" hwndApp: %p
\n
"
,
pPromptStruct
->
hwndApp
);
TRACE
(
" szPrompt: %p %s
\n
"
,
pPromptStruct
->
szPrompt
,
pPromptStruct
->
szPrompt
?
debugstr_w
(
pPromptStruct
->
szPrompt
)
:
""
);
}
TRACE
(
"dwFlags: 0x%04x
\n
"
,
(
unsigned
int
)
dwFlags
);
TRACE
(
"dwFlags: 0x%04x
\n
"
,
dwFlags
);
TRACE_DATA_BLOB
(
pDataIn
);
if
(
pOptionalEntropy
)
{
...
...
@@ -893,7 +892,7 @@ BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn,
ERR
(
"CryptEncrypt
\n
"
);
goto
free_hash
;
}
TRACE
(
"required encrypted storage: %u
\n
"
,
(
unsigned
int
)
dwLength
);
TRACE
(
"required encrypted storage: %u
\n
"
,
dwLength
);
/* copy plain text into cipher area for CryptEncrypt call */
protect_data
.
cipher
.
cbData
=
dwLength
;
...
...
@@ -910,7 +909,7 @@ BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn,
if
(
!
CryptEncrypt
(
hKey
,
hHash
,
TRUE
,
0
,
protect_data
.
cipher
.
pbData
,
&
dwLength
,
protect_data
.
cipher
.
cbData
))
{
ERR
(
"CryptEncrypt %u
\n
"
,
(
unsigned
int
)
GetLastError
());
ERR
(
"CryptEncrypt %u
\n
"
,
GetLastError
());
goto
free_hash
;
}
protect_data
.
cipher
.
cbData
=
dwLength
;
...
...
dlls/crypt32/store.c
View file @
5d886557
...
...
@@ -521,7 +521,7 @@ static PWINECRYPT_CERTSTORE CRYPT_SysOpenStoreA(HCRYPTPROV hCryptProv,
static
void
WINAPI
CRYPT_MsgCloseStore
(
HCERTSTORE
hCertStore
,
DWORD
dwFlags
)
{
HCRYPTMSG
msg
=
(
HCRYPTMSG
)
hCertStore
;
HCRYPTMSG
msg
=
hCertStore
;
TRACE
(
"(%p, %08x)
\n
"
,
msg
,
dwFlags
);
CryptMsgClose
(
msg
);
...
...
dlls/crypt32/str.c
View file @
5d886557
...
...
@@ -622,7 +622,7 @@ static BOOL CRYPT_GetNextValueW(LPCWSTR str, DWORD dwFlags, LPCWSTR separators,
while
(
*
separators
)
map
[
*
separators
++
]
=
1
;
while
(
*
str
&&
(
*
str
>=
0xff
||
!
map
[
*
(
const
unsigned
short
*
)
str
]))
while
(
*
str
&&
(
*
str
>=
0xff
||
!
map
[
*
str
]))
str
++
;
token
->
end
=
str
;
}
...
...
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