[Bug 27178] New: advapi32: CryptEnumProvidersW may don't free resources

wine-bugs at winehq.org wine-bugs at winehq.org
Sun May 15 12:10:40 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=27178

           Summary: advapi32: CryptEnumProvidersW may don't free resources
           Product: Wine
           Version: unspecified
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: advapi32
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: menone7 at gmail.com


CryptEnumProvidersW may don't free resources, if something was wrong with the
type registration.

if (RegOpenKeyW(hKey, pszProvName, &subkey))
    return FALSE;
if (RegQueryValueExW(subkey, typeW, NULL, NULL, (BYTE*)pdwProvType, &size))
    return FALSE;

must be

if (RegOpenKeyW(hKey, pszProvName, &subkey))
{
    RegCloseKey(hKey);
    SetLastError(NTE_FAIL);
    return FALSE;
}
if (RegQueryValueExW(subkey, typeW, NULL, NULL, (BYTE*)pdwProvType, &size))
{
    RegCloseKey(subkey);
    RegCloseKey(hKey);
    SetLastError(NTE_FAIL);
    return FALSE;
}

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list