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
0ef69ef9
Commit
0ef69ef9
authored
Apr 25, 2008
by
Erik de Castro Lopo
Committed by
Alexandre Julliard
Apr 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Use LOWORD on LPCSTR type instead of casting to int.
parent
56797f9c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
chain.c
dlls/crypt32/chain.c
+4
-4
store.c
dlls/crypt32/store.c
+13
-13
No files found.
dlls/crypt32/chain.c
View file @
0ef69ef9
...
@@ -1780,16 +1780,16 @@ BOOL WINAPI CertVerifyCertificateChainPolicy(LPCSTR szPolicyOID,
...
@@ -1780,16 +1780,16 @@ BOOL WINAPI CertVerifyCertificateChainPolicy(LPCSTR szPolicyOID,
{
{
switch
(
LOWORD
(
szPolicyOID
))
switch
(
LOWORD
(
szPolicyOID
))
{
{
case
(
int
)
CERT_CHAIN_POLICY_BASE
:
case
LOWORD
(
CERT_CHAIN_POLICY_BASE
)
:
verifyPolicy
=
verify_base_policy
;
verifyPolicy
=
verify_base_policy
;
break
;
break
;
case
(
int
)
CERT_CHAIN_POLICY_AUTHENTICODE
:
case
LOWORD
(
CERT_CHAIN_POLICY_AUTHENTICODE
)
:
verifyPolicy
=
verify_authenticode_policy
;
verifyPolicy
=
verify_authenticode_policy
;
break
;
break
;
case
(
int
)
CERT_CHAIN_POLICY_BASIC_CONSTRAINTS
:
case
LOWORD
(
CERT_CHAIN_POLICY_BASIC_CONSTRAINTS
)
:
verifyPolicy
=
verify_basic_constraints_policy
;
verifyPolicy
=
verify_basic_constraints_policy
;
break
;
break
;
case
(
int
)
CERT_CHAIN_POLICY_MICROSOFT_ROOT
:
case
LOWORD
(
CERT_CHAIN_POLICY_MICROSOFT_ROOT
)
:
verifyPolicy
=
verify_ms_root_policy
;
verifyPolicy
=
verify_ms_root_policy
;
break
;
break
;
default:
default:
...
...
dlls/crypt32/store.c
View file @
0ef69ef9
...
@@ -674,43 +674,43 @@ HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider,
...
@@ -674,43 +674,43 @@ HCERTSTORE WINAPI CertOpenStore(LPCSTR lpszStoreProvider,
{
{
switch
(
LOWORD
(
lpszStoreProvider
))
switch
(
LOWORD
(
lpszStoreProvider
))
{
{
case
(
int
)
CERT_STORE_PROV_MSG
:
case
LOWORD
(
CERT_STORE_PROV_MSG
)
:
openFunc
=
CRYPT_MsgOpenStore
;
openFunc
=
CRYPT_MsgOpenStore
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_MEMORY
:
case
LOWORD
(
CERT_STORE_PROV_MEMORY
)
:
openFunc
=
CRYPT_MemOpenStore
;
openFunc
=
CRYPT_MemOpenStore
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_FILE
:
case
LOWORD
(
CERT_STORE_PROV_FILE
)
:
openFunc
=
CRYPT_FileOpenStore
;
openFunc
=
CRYPT_FileOpenStore
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_PKCS7
:
case
LOWORD
(
CERT_STORE_PROV_PKCS7
)
:
openFunc
=
CRYPT_PKCSOpenStore
;
openFunc
=
CRYPT_PKCSOpenStore
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_REG
:
case
LOWORD
(
CERT_STORE_PROV_REG
)
:
openFunc
=
CRYPT_RegOpenStore
;
openFunc
=
CRYPT_RegOpenStore
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_FILENAME_A
:
case
LOWORD
(
CERT_STORE_PROV_FILENAME_A
)
:
openFunc
=
CRYPT_FileNameOpenStoreA
;
openFunc
=
CRYPT_FileNameOpenStoreA
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_FILENAME_W
:
case
LOWORD
(
CERT_STORE_PROV_FILENAME_W
)
:
openFunc
=
CRYPT_FileNameOpenStoreW
;
openFunc
=
CRYPT_FileNameOpenStoreW
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_COLLECTION
:
case
LOWORD
(
CERT_STORE_PROV_COLLECTION
)
:
openFunc
=
CRYPT_CollectionOpenStore
;
openFunc
=
CRYPT_CollectionOpenStore
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_SYSTEM_A
:
case
LOWORD
(
CERT_STORE_PROV_SYSTEM_A
)
:
openFunc
=
CRYPT_SysOpenStoreA
;
openFunc
=
CRYPT_SysOpenStoreA
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_SYSTEM_W
:
case
LOWORD
(
CERT_STORE_PROV_SYSTEM_W
)
:
openFunc
=
CRYPT_SysOpenStoreW
;
openFunc
=
CRYPT_SysOpenStoreW
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_SYSTEM_REGISTRY_A
:
case
LOWORD
(
CERT_STORE_PROV_SYSTEM_REGISTRY_A
)
:
openFunc
=
CRYPT_SysRegOpenStoreA
;
openFunc
=
CRYPT_SysRegOpenStoreA
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_SYSTEM_REGISTRY_W
:
case
LOWORD
(
CERT_STORE_PROV_SYSTEM_REGISTRY_W
)
:
openFunc
=
CRYPT_SysRegOpenStoreW
;
openFunc
=
CRYPT_SysRegOpenStoreW
;
break
;
break
;
case
(
int
)
CERT_STORE_PROV_PHYSICAL_W
:
case
LOWORD
(
CERT_STORE_PROV_PHYSICAL_W
)
:
openFunc
=
CRYPT_PhysOpenStoreW
;
openFunc
=
CRYPT_PhysOpenStoreW
;
break
;
break
;
default:
default:
...
...
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