Commit a76d38d3 authored by Ricardo Filipe's avatar Ricardo Filipe Committed by Alexandre Julliard

advapi32: Removed dead assignments (llvm/clang).

parent f3cad17a
......@@ -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;
......
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