Commit 9285306a authored by Charles Davis's avatar Charles Davis Committed by Alexandre Julliard

advapi32: Eliminate dead stores (Clang).

parent 0a3ec107
...@@ -190,7 +190,6 @@ static DWORD registry_read_credential(HKEY hkey, PCREDENTIALW credential, ...@@ -190,7 +190,6 @@ static DWORD registry_read_credential(HKEY hkey, PCREDENTIALW credential,
else if (ret != ERROR_SUCCESS) else if (ret != ERROR_SUCCESS)
return ret; return ret;
credential->CredentialBlobSize = count; credential->CredentialBlobSize = count;
buffer += count;
} }
/* FIXME: Attributes */ /* FIXME: Attributes */
...@@ -425,7 +424,6 @@ static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require ...@@ -425,7 +424,6 @@ static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require
str_len = MultiByteToWideChar(CP_UTF8, 0, cred_blob, cred_blob_len, str_len = MultiByteToWideChar(CP_UTF8, 0, cred_blob, cred_blob_len,
(LPWSTR)buffer, 0xffff); (LPWSTR)buffer, 0xffff);
credential->CredentialBlobSize = str_len * sizeof(WCHAR); credential->CredentialBlobSize = str_len * sizeof(WCHAR);
buffer += str_len * sizeof(WCHAR);
*len += str_len * sizeof(WCHAR); *len += str_len * sizeof(WCHAR);
} }
else else
...@@ -771,17 +769,11 @@ static DWORD registry_enumerate_credentials(HKEY hkeyMgr, LPCWSTR filter, ...@@ -771,17 +769,11 @@ static DWORD registry_enumerate_credentials(HKEY hkeyMgr, LPCWSTR filter,
break; break;
} }
else if (ret != ERROR_SUCCESS) else if (ret != ERROR_SUCCESS)
{
ret = ERROR_SUCCESS;
continue; continue;
}
TRACE("target_name = %s\n", debugstr_w(target_name)); TRACE("target_name = %s\n", debugstr_w(target_name));
ret = RegOpenKeyExW(hkeyMgr, target_name, 0, KEY_QUERY_VALUE, &hkeyCred); ret = RegOpenKeyExW(hkeyMgr, target_name, 0, KEY_QUERY_VALUE, &hkeyCred);
if (ret != ERROR_SUCCESS) if (ret != ERROR_SUCCESS)
{
ret = ERROR_SUCCESS;
continue; continue;
}
if (!credential_matches_filter(hkeyCred, filter)) if (!credential_matches_filter(hkeyCred, filter))
{ {
RegCloseKey(hkeyCred); RegCloseKey(hkeyCred);
...@@ -1677,8 +1669,8 @@ BOOL WINAPI CredReadDomainCredentialsA(PCREDENTIAL_TARGET_INFORMATIONA TargetInf ...@@ -1677,8 +1669,8 @@ BOOL WINAPI CredReadDomainCredentialsA(PCREDENTIAL_TARGET_INFORMATIONA TargetInf
if (TargetInformation->PackageName) if (TargetInformation->PackageName)
{ {
TargetInformationW->PackageName = buffer; TargetInformationW->PackageName = buffer;
buffer += MultiByteToWideChar(CP_ACP, 0, TargetInformation->PackageName, -1, MultiByteToWideChar(CP_ACP, 0, TargetInformation->PackageName, -1,
TargetInformationW->PackageName, end - buffer); TargetInformationW->PackageName, end - buffer);
} else } else
TargetInformationW->PackageName = NULL; TargetInformationW->PackageName = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment