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
a5ab9465
Commit
a5ab9465
authored
Jul 12, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptdlg: Use nameless unions/structs.
parent
25c70738
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
main.c
dlls/cryptdlg/main.c
+5
-7
No files found.
dlls/cryptdlg/main.c
View file @
a5ab9465
...
@@ -16,8 +16,6 @@
...
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#define NONAMELESSUNION
#include <stdarg.h>
#include <stdarg.h>
#include "windef.h"
#include "windef.h"
...
@@ -231,11 +229,11 @@ static CERT_VERIFY_CERTIFICATE_TRUST *CRYPTDLG_GetVerifyData(
...
@@ -231,11 +229,11 @@ static CERT_VERIFY_CERTIFICATE_TRUST *CRYPTDLG_GetVerifyData(
* called directly:
* called directly:
*/
*/
if
(
data
->
pWintrustData
->
dwUnionChoice
==
WTD_CHOICE_BLOB
&&
if
(
data
->
pWintrustData
->
dwUnionChoice
==
WTD_CHOICE_BLOB
&&
data
->
pWintrustData
->
u
.
pBlob
&&
data
->
pWintrustData
->
u
.
pBlob
->
cbMemObject
==
data
->
pWintrustData
->
pBlob
&&
data
->
pWintrustData
->
pBlob
->
cbMemObject
==
sizeof
(
CERT_VERIFY_CERTIFICATE_TRUST
)
&&
sizeof
(
CERT_VERIFY_CERTIFICATE_TRUST
)
&&
data
->
pWintrustData
->
u
.
pBlob
->
pbMemObject
)
data
->
pWintrustData
->
pBlob
->
pbMemObject
)
pCert
=
(
CERT_VERIFY_CERTIFICATE_TRUST
*
)
pCert
=
(
CERT_VERIFY_CERTIFICATE_TRUST
*
)
data
->
pWintrustData
->
u
.
pBlob
->
pbMemObject
;
data
->
pWintrustData
->
pBlob
->
pbMemObject
;
return
pCert
;
return
pCert
;
}
}
...
@@ -423,7 +421,7 @@ BOOL WINAPI CertViewPropertiesW(CERT_VIEWPROPERTIES_STRUCT_W *info)
...
@@ -423,7 +421,7 @@ BOOL WINAPI CertViewPropertiesW(CERT_VIEWPROPERTIES_STRUCT_W *info)
wtd
.
cbStruct
=
sizeof
(
wtd
);
wtd
.
cbStruct
=
sizeof
(
wtd
);
wtd
.
dwUIChoice
=
WTD_UI_NONE
;
wtd
.
dwUIChoice
=
WTD_UI_NONE
;
wtd
.
dwUnionChoice
=
WTD_CHOICE_BLOB
;
wtd
.
dwUnionChoice
=
WTD_CHOICE_BLOB
;
wtd
.
u
.
pBlob
=
&
blob
;
wtd
.
pBlob
=
&
blob
;
wtd
.
dwStateAction
=
WTD_STATEACTION_VERIFY
;
wtd
.
dwStateAction
=
WTD_STATEACTION_VERIFY
;
err
=
WinVerifyTrust
(
NULL
,
&
cert_action_verify
,
&
wtd
);
err
=
WinVerifyTrust
(
NULL
,
&
cert_action_verify
,
&
wtd
);
if
(
err
==
ERROR_SUCCESS
)
if
(
err
==
ERROR_SUCCESS
)
...
@@ -440,7 +438,7 @@ BOOL WINAPI CertViewPropertiesW(CERT_VIEWPROPERTIES_STRUCT_W *info)
...
@@ -440,7 +438,7 @@ BOOL WINAPI CertViewPropertiesW(CERT_VIEWPROPERTIES_STRUCT_W *info)
uiInfo
.
pCertContext
=
info
->
pCertContext
;
uiInfo
.
pCertContext
=
info
->
pCertContext
;
uiInfo
.
cPurposes
=
info
->
cArrayPurposes
;
uiInfo
.
cPurposes
=
info
->
cArrayPurposes
;
uiInfo
.
rgszPurposes
=
(
LPCSTR
*
)
info
->
arrayPurposes
;
uiInfo
.
rgszPurposes
=
(
LPCSTR
*
)
info
->
arrayPurposes
;
uiInfo
.
u
.
hWVTStateData
=
wtd
.
hWVTStateData
;
uiInfo
.
hWVTStateData
=
wtd
.
hWVTStateData
;
uiInfo
.
fpCryptProviderDataTrustedUsage
=
TRUE
;
uiInfo
.
fpCryptProviderDataTrustedUsage
=
TRUE
;
uiInfo
.
cPropSheetPages
=
info
->
cArrayPropSheetPages
;
uiInfo
.
cPropSheetPages
=
info
->
cArrayPropSheetPages
;
uiInfo
.
rgPropSheetPages
=
info
->
arrayPropSheetPages
;
uiInfo
.
rgPropSheetPages
=
info
->
arrayPropSheetPages
;
...
...
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