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
c7b5778d
Commit
c7b5778d
authored
Sep 12, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Use BCrypt algorithm pseudo-handles.
parent
ec85dfe3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
addons.c
dlls/appwiz.cpl/addons.c
+1
-5
No files found.
dlls/appwiz.cpl/addons.c
View file @
c7b5778d
...
...
@@ -120,7 +120,6 @@ static BOOL sha_check(const WCHAR *file_name)
HANDLE
file
,
map
;
DWORD
size
,
i
;
BCRYPT_HASH_HANDLE
hash
=
NULL
;
BCRYPT_ALG_HANDLE
alg
=
NULL
;
UCHAR
sha
[
32
];
char
buf
[
1024
];
BOOL
ret
=
FALSE
;
...
...
@@ -143,9 +142,7 @@ static BOOL sha_check(const WCHAR *file_name)
if
(
!
file_map
)
return
FALSE
;
if
(
BCryptOpenAlgorithmProvider
(
&
alg
,
BCRYPT_SHA256_ALGORITHM
,
MS_PRIMITIVE_PROVIDER
,
0
))
goto
end
;
if
(
BCryptCreateHash
(
alg
,
&
hash
,
NULL
,
0
,
NULL
,
0
,
0
))
if
(
BCryptCreateHash
(
BCRYPT_SHA256_ALG_HANDLE
,
&
hash
,
NULL
,
0
,
NULL
,
0
,
0
))
goto
end
;
if
(
BCryptHashData
(
hash
,
(
UCHAR
*
)
file_map
,
size
,
0
))
goto
end
;
...
...
@@ -162,7 +159,6 @@ static BOOL sha_check(const WCHAR *file_name)
end:
UnmapViewOfFile
(
file_map
);
if
(
hash
)
BCryptDestroyHash
(
hash
);
if
(
alg
)
BCryptCloseAlgorithmProvider
(
alg
,
0
);
return
ret
;
}
...
...
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