Hans Leidekker : credui: Don' t save credentials if CREDUI_FLAGS_DO_NOT_PERSIST is specified.

Alexandre Julliard julliard at winehq.org
Thu Oct 18 14:33:12 CDT 2012


Module: wine
Branch: master
Commit: d6f8687630b3702e91aee5dadc5fd6b1842ba879
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d6f8687630b3702e91aee5dadc5fd6b1842ba879

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Oct 18 14:16:21 2012 +0200

credui: Don't save credentials if CREDUI_FLAGS_DO_NOT_PERSIST is specified.

---

 dlls/credui/credui_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c
index e3e964f..b470928 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);
     }




More information about the wine-cvs mailing list