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
1a6fa446
Commit
1a6fa446
authored
Aug 20, 2004
by
James Hawkins
Committed by
Alexandre Julliard
Aug 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable ERROR_MORE_DATA to be set in CryptGetDefaultProvider.
parent
e02eb905
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
crypt.c
dlls/advapi32/crypt.c
+9
-2
No files found.
dlls/advapi32/crypt.c
View file @
1a6fa446
...
...
@@ -1247,6 +1247,7 @@ BOOL WINAPI CryptGetDefaultProviderA (DWORD dwProvType, DWORD *pdwReserved,
{
HKEY
hKey
;
PSTR
keyname
;
DWORD
result
;
if
(
pdwReserved
||
!
pcbProvName
)
CRYPT_ReturnLastError
(
ERROR_INVALID_PARAMETER
);
...
...
@@ -1262,12 +1263,18 @@ BOOL WINAPI CryptGetDefaultProviderA (DWORD dwProvType, DWORD *pdwReserved,
CRYPT_ReturnLastError
(
NTE_PROV_TYPE_NOT_DEF
);
}
CRYPT_Free
(
keyname
);
if
(
RegQueryValueExA
(
hKey
,
"Name"
,
NULL
,
NULL
,
pszProvName
,
pcbProvName
))
result
=
RegQueryValueExA
(
hKey
,
"Name"
,
NULL
,
NULL
,
pszProvName
,
pcbProvName
);
if
(
result
)
{
if
(
GetLastError
()
!=
ERROR_MORE_DATA
)
if
(
result
!=
ERROR_MORE_DATA
)
SetLastError
(
NTE_PROV_TYPE_ENTRY_BAD
);
else
SetLastError
(
result
);
return
FALSE
;
}
RegCloseKey
(
hKey
);
return
TRUE
;
}
...
...
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