http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bea33bb
)
crypt32: Do not use uninitialized hDefProv.
author
Alexander Morozov
<amorozov@etersoft.ru>
Thu, 2 Sep 2010 13:13:00 +0000
(17:13 +0400)
committer
Alexander Morozov
<amorozov@etersoft.ru>
Thu, 2 Sep 2010 13:15:55 +0000
(17:15 +0400)
dlls/crypt32/main.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/crypt32/main.c
b/dlls/crypt32/main.c
index 115c4d7c77bfac75bc0d13380718892dba6d9ac1..3815aa2793528c8bc47879ebc5e0362262db7009 100644
(file)
--- a/
dlls/crypt32/main.c
+++ b/
dlls/crypt32/main.c
@@
-112,13
+112,13
@@
static BOOL CRYPT_AlgIsSupported(HCRYPTPROV hProv, ALG_ID algID)
HCRYPTPROV CRYPT_GetProvForAlgId(ALG_ID algID)
{
LPWSTR provName;
- HCRYPTPROV prov;
+ HCRYPTPROV prov
= CRYPT_GetDefaultProvider()
;
DWORD i = 0, type, nameSize;
- if (CRYPT_AlgIsSupported(
hDefP
rov, algID))
+ if (CRYPT_AlgIsSupported(
p
rov, algID))
{
- CryptContextAddRef(
hDefP
rov, NULL, 0);
- return
hDefP
rov;
+ CryptContextAddRef(
p
rov, NULL, 0);
+ return
p
rov;
}
while (CryptEnumProvidersW(i, NULL, 0, &type, NULL, &nameSize))