mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:15:09 +00:00
secur32: Pass correct buffer length to RegQueryValueExW().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
01080e6750
commit
3769d5750c
|
@ -575,7 +575,7 @@ static void SECUR32_initializeProviders(void)
|
|||
if (apiRet == ERROR_SUCCESS)
|
||||
{
|
||||
WCHAR securityPkgNames[MAX_PATH]; /* arbitrary len */
|
||||
DWORD size = sizeof(securityPkgNames) / sizeof(WCHAR), type;
|
||||
DWORD size = sizeof(securityPkgNames), type;
|
||||
|
||||
apiRet = RegQueryValueExW(key, securityProvidersW, NULL, &type,
|
||||
(PBYTE)securityPkgNames, &size);
|
||||
|
|
Loading…
Reference in a new issue