credui: Don't save credentials if CREDUI_FLAGS_DO_NOT_PERSIST is specified.
This commit is contained in:
parent
ab179341e2
commit
d6f8687630
|
@ -655,7 +655,7 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo,
|
||||||
|
|
||||||
LeaveCriticalSection(&csPendingCredentials);
|
LeaveCriticalSection(&csPendingCredentials);
|
||||||
}
|
}
|
||||||
else
|
else if (!(dwFlags & CREDUI_FLAGS_DO_NOT_PERSIST))
|
||||||
result = save_credentials(pszTargetName, pszUsername, pszPassword,
|
result = save_credentials(pszTargetName, pszUsername, pszPassword,
|
||||||
(dwFlags & CREDUI_FLAGS_GENERIC_CREDENTIALS) != 0);
|
(dwFlags & CREDUI_FLAGS_GENERIC_CREDENTIALS) != 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue