advapi32: Removed dead assignments (llvm/clang).

This commit is contained in:
Ricardo Filipe 2008-11-19 23:59:05 +00:00 committed by Alexandre Julliard
parent f3cad17a9b
commit a76d38d38e
1 changed files with 0 additions and 6 deletions

View File

@ -168,10 +168,7 @@ static DWORD registry_read_credential(HKEY hkey, PCREDENTIALW credential,
ret = RegQueryValueExW(hkey, wszUserNameValue, 0, &type, (LPVOID)credential->UserName,
&count);
if (ret == ERROR_FILE_NOT_FOUND)
{
credential->UserName = NULL;
ret = ERROR_SUCCESS;
}
else if (ret != ERROR_SUCCESS)
return ret;
else if (type != REG_SZ)
@ -189,10 +186,7 @@ static DWORD registry_read_credential(HKEY hkey, PCREDENTIALW credential,
credential->CredentialBlob = (LPBYTE)buffer;
ret = read_credential_blob(hkey, key_data, credential->CredentialBlob, &count);
if (ret == ERROR_FILE_NOT_FOUND)
{
credential->CredentialBlob = NULL;
ret = ERROR_SUCCESS;
}
else if (ret != ERROR_SUCCESS)
return ret;
credential->CredentialBlobSize = count;