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
0087064c
Commit
0087064c
authored
Jan 29, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintrust: Remove superfluous pointer casts.
parent
30a37b65
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
50 deletions
+40
-50
asn.c
dlls/wintrust/asn.c
+29
-38
softpub.c
dlls/wintrust/softpub.c
+2
-2
wintrust_main.c
dlls/wintrust/wintrust_main.c
+9
-10
No files found.
dlls/wintrust/asn.c
View file @
0087064c
This diff is collapsed.
Click to expand it.
dlls/wintrust/softpub.c
View file @
0087064c
...
...
@@ -795,7 +795,7 @@ HRESULT WINAPI GenericChainCertificateTrust(CRYPT_PROVIDER_DATA *data)
{
BOOL
ret
;
WTD_GENERIC_CHAIN_POLICY_DATA
*
policyData
=
(
WTD_GENERIC_CHAIN_POLICY_DATA
*
)
data
->
pWintrustData
->
pPolicyCallbackData
;
data
->
pWintrustData
->
pPolicyCallbackData
;
TRACE
(
"(%p)
\n
"
,
data
);
...
...
@@ -961,7 +961,7 @@ HRESULT WINAPI GenericChainFinalProv(CRYPT_PROVIDER_DATA *data)
{
HRESULT
err
=
NO_ERROR
;
/* not a typo, MS confused the types */
WTD_GENERIC_CHAIN_POLICY_DATA
*
policyData
=
(
WTD_GENERIC_CHAIN_POLICY_DATA
*
)
data
->
pWintrustData
->
pPolicyCallbackData
;
data
->
pWintrustData
->
pPolicyCallbackData
;
TRACE
(
"(%p)
\n
"
,
data
);
...
...
dlls/wintrust/wintrust_main.c
View file @
0087064c
...
...
@@ -184,7 +184,7 @@ static LONG WINTRUST_DefaultVerify(HWND hwnd, GUID *actionID,
goto
error
;
}
data
->
hWVTStateData
=
(
HANDLE
)
provData
;
data
->
hWVTStateData
=
provData
;
provData
->
pWintrustData
=
data
;
if
(
hwnd
==
INVALID_HANDLE_VALUE
)
provData
->
hWndParent
=
GetDesktopWindow
();
...
...
@@ -215,7 +215,7 @@ static LONG WINTRUST_DefaultClose(HWND hwnd, GUID *actionID,
WINTRUST_DATA
*
data
)
{
DWORD
err
=
ERROR_SUCCESS
;
CRYPT_PROVIDER_DATA
*
provData
=
(
CRYPT_PROVIDER_DATA
*
)
data
->
hWVTStateData
;
CRYPT_PROVIDER_DATA
*
provData
=
data
->
hWVTStateData
;
TRACE
(
"(%p, %s, %p)
\n
"
,
hwnd
,
debugstr_guid
(
actionID
),
data
);
...
...
@@ -254,8 +254,7 @@ static LONG WINTRUST_PublishedSoftware(HWND hwnd, GUID *actionID,
/* Undocumented: the published software action is passed a path,
* and pSIPClientData points to a WIN_TRUST_SUBJECT_FILE.
*/
LPWIN_TRUST_SUBJECT_FILE
subjectFile
=
(
LPWIN_TRUST_SUBJECT_FILE
)
data
->
pSIPClientData
;
LPWIN_TRUST_SUBJECT_FILE
subjectFile
=
data
->
pSIPClientData
;
WINTRUST_FILE_INFO
fileInfo
=
{
sizeof
(
fileInfo
),
0
};
TRACE
(
"subjectFile->hFile: %p
\n
"
,
subjectFile
->
hFile
);
...
...
@@ -377,7 +376,7 @@ static LONG WINTRUST_CertVerify(HWND hwnd, GUID *actionID,
/* Not sure why, but native skips the policy check */
provData
->
psPfns
->
pfnCertCheckPolicy
=
NULL
;
data
->
hWVTStateData
=
(
HANDLE
)
provData
;
data
->
hWVTStateData
=
provData
;
provData
->
pWintrustData
=
data
;
if
(
hwnd
==
INVALID_HANDLE_VALUE
)
provData
->
hWndParent
=
GetDesktopWindow
();
...
...
@@ -584,7 +583,7 @@ LONG WINAPI WinVerifyTrust( HWND hwnd, GUID *ActionID, LPVOID ActionData )
static
const
GUID
generic_chain_verify
=
WINTRUST_ACTION_GENERIC_CHAIN_VERIFY
;
static
const
GUID
cert_action_verify
=
CERT_CERTIFICATE_ACTION_VERIFY
;
LONG
err
=
ERROR_SUCCESS
;
WINTRUST_DATA
*
actionData
=
(
WINTRUST_DATA
*
)
ActionData
;
WINTRUST_DATA
*
actionData
=
ActionData
;
TRACE
(
"(%p, %s, %p)
\n
"
,
hwnd
,
debugstr_guid
(
ActionID
),
ActionData
);
dump_wintrust_data
(
ActionData
);
...
...
@@ -709,7 +708,7 @@ CRYPT_PROVIDER_PRIVDATA *WINAPI WTHelperGetProvPrivateDataFromChain(
CRYPT_PROVIDER_DATA
*
WINAPI
WTHelperProvDataFromStateData
(
HANDLE
hStateData
)
{
TRACE
(
"%p
\n
"
,
hStateData
);
return
(
CRYPT_PROVIDER_DATA
*
)
hStateData
;
return
hStateData
;
}
/***********************************************************************
...
...
@@ -738,7 +737,7 @@ HANDLE WINAPI WTHelperGetFileHandle(WINTRUST_DATA *data)
static
BOOL
WINAPI
WINTRUST_enumUsages
(
PCCRYPT_OID_INFO
pInfo
,
void
*
pvArg
)
{
PCCRYPT_OID_INFO
**
usages
=
(
PCCRYPT_OID_INFO
**
)
pvArg
;
PCCRYPT_OID_INFO
**
usages
=
pvArg
;
DWORD
cUsages
;
BOOL
ret
;
...
...
@@ -756,7 +755,7 @@ static BOOL WINAPI WINTRUST_enumUsages(PCCRYPT_OID_INFO pInfo, void *pvArg)
*/
for
(
cUsages
=
0
,
ptr
=
*
usages
;
*
ptr
;
ptr
++
,
cUsages
++
)
;
*
usages
=
WINTRUST_ReAlloc
(
(
CRYPT_OID_INFO
*
)
*
usages
,
*
usages
=
WINTRUST_ReAlloc
(
*
usages
,
(
cUsages
+
2
)
*
sizeof
(
PCCRYPT_OID_INFO
));
}
if
(
*
usages
)
...
...
@@ -809,7 +808,7 @@ BOOL WINAPI WTHelperGetKnownUsages(DWORD action, PCCRYPT_OID_INFO **usages)
}
else
if
(
action
==
2
)
{
WINTRUST_Free
(
(
CRYPT_OID_INFO
*
)
*
usages
);
WINTRUST_Free
(
*
usages
);
*
usages
=
NULL
;
ret
=
TRUE
;
}
...
...
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