diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c index e3e964f56be..b470928909b 100644 --- a/dlls/credui/credui_main.c +++ b/dlls/credui/credui_main.c @@ -655,7 +655,7 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo, LeaveCriticalSection(&csPendingCredentials); } - else + else if (!(dwFlags & CREDUI_FLAGS_DO_NOT_PERSIST)) result = save_credentials(pszTargetName, pszUsername, pszPassword, (dwFlags & CREDUI_FLAGS_GENERIC_CREDENTIALS) != 0); }