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
024237ef
Commit
024237ef
authored
Nov 29, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Nov 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Remove redundant NULL checks before CRYPT_Free.
parent
a64945ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
20 deletions
+11
-20
crypt.c
dlls/advapi32/crypt.c
+11
-20
No files found.
dlls/advapi32/crypt.c
View file @
024237ef
...
...
@@ -474,22 +474,15 @@ error:
pProv
->
dwMagic
=
0
;
if
(
pProv
->
hModule
)
FreeLibrary
(
pProv
->
hModule
);
if
(
pProv
->
pVTable
)
CRYPT_Free
(
pProv
->
pVTable
);
if
(
pProv
->
pFuncs
)
CRYPT_Free
(
pProv
->
pFuncs
);
CRYPT_Free
(
pProv
->
pVTable
);
CRYPT_Free
(
pProv
->
pFuncs
);
CRYPT_Free
(
pProv
);
}
if
(
pszContainerA
)
CRYPT_Free
(
pszContainerA
);
if
(
provnameA
)
CRYPT_Free
(
provnameA
);
if
(
provname
)
CRYPT_Free
(
provname
);
if
(
temp
)
CRYPT_Free
(
temp
);
if
(
imagepath
)
CRYPT_Free
(
imagepath
);
CRYPT_Free
(
pszContainerA
);
CRYPT_Free
(
provnameA
);
CRYPT_Free
(
provname
);
CRYPT_Free
(
temp
);
CRYPT_Free
(
imagepath
);
return
FALSE
;
}
...
...
@@ -517,10 +510,8 @@ BOOL WINAPI CryptAcquireContextA (HCRYPTPROV *phProv, LPCSTR pszContainer,
ret
=
CryptAcquireContextW
(
phProv
,
pContainer
,
pProvider
,
dwProvType
,
dwFlags
);
if
(
pContainer
)
CRYPT_Free
(
pContainer
);
if
(
pProvider
)
CRYPT_Free
(
pProvider
);
CRYPT_Free
(
pContainer
);
CRYPT_Free
(
pProvider
);
return
ret
;
}
...
...
@@ -1663,7 +1654,7 @@ BOOL WINAPI CryptSignHashA (HCRYPTHASH hHash, DWORD dwKeySpec, LPCSTR sDescripti
CRYPT_ANSIToUnicode
(
sDescription
,
&
wsDescription
,
-
1
);
result
=
CryptSignHashW
(
hHash
,
dwKeySpec
,
wsDescription
,
dwFlags
,
pbSignature
,
pdwSigLen
);
if
(
wsDescription
)
CRYPT_Free
(
wsDescription
);
CRYPT_Free
(
wsDescription
);
return
result
;
}
...
...
@@ -1962,7 +1953,7 @@ BOOL WINAPI CryptVerifySignatureA (HCRYPTHASH hHash, BYTE *pbSignature, DWORD dw
CRYPT_ANSIToUnicode
(
sDescription
,
&
wsDescription
,
-
1
);
result
=
CryptVerifySignatureW
(
hHash
,
pbSignature
,
dwSigLen
,
hPubKey
,
wsDescription
,
dwFlags
);
if
(
wsDescription
)
CRYPT_Free
(
wsDescription
);
CRYPT_Free
(
wsDescription
);
return
result
;
}
...
...
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