Use RegQueryValueExA instead of RegQueryValueA in

CryptEnumProviderTypes.
This commit is contained in:
Michael Jung 2004-07-15 18:59:34 +00:00 committed by Alexandre Julliard
parent 75c3c37b17
commit 4651067f43
1 changed files with 2 additions and 2 deletions

View File

@ -1038,7 +1038,7 @@ BOOL WINAPI CryptEnumProviderTypesA (DWORD dwIndex, DWORD *pdwReserved,
DWORD dwFlags, DWORD *pdwProvType, LPSTR pszTypeName, DWORD *pcbTypeName) DWORD dwFlags, DWORD *pdwProvType, LPSTR pszTypeName, DWORD *pcbTypeName)
{ {
HKEY hKey, hSubkey; HKEY hKey, hSubkey;
DWORD keylen, numkeys; DWORD keylen, numkeys, dwType;
PSTR keyname, ch; PSTR keyname, ch;
TRACE("(%ld, %p, %08ld, %p, %p, %p)\n", dwIndex, pdwReserved, TRACE("(%ld, %p, %08ld, %p, %p, %p)\n", dwIndex, pdwReserved,
@ -1068,7 +1068,7 @@ BOOL WINAPI CryptEnumProviderTypesA (DWORD dwIndex, DWORD *pdwReserved,
*pdwProvType += (*(--ch) - '0') * 10; *pdwProvType += (*(--ch) - '0') * 10;
*pdwProvType += (*(--ch) - '0') * 100; *pdwProvType += (*(--ch) - '0') * 100;
CRYPT_Free(keyname); CRYPT_Free(keyname);
RegQueryValueA(hSubkey, "TypeName", pszTypeName, pcbTypeName); RegQueryValueExA(hSubkey, "TypeName", NULL, &dwType, pszTypeName, pcbTypeName);
RegCloseKey(hSubkey); RegCloseKey(hSubkey);
RegCloseKey(hKey); RegCloseKey(hKey);
return TRUE; return TRUE;