[PATCH 3/4] wininet: Set error to ERROR_CANCELLED on IDCANCEL in the user/password dialog.
This matches behaviour observed under Windows, otherwise urlmon IAuthenticate interactive test infinitely asks for user credentials after pressing Esc. Probably proxy user/password dialog should do the same, however this needs a confirmation with a test case. Signed-off-by: Dmitry Timoshkov <dmitry(a)baikal.ru> --- dlls/wininet/dialogs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/dialogs.c b/dlls/wininet/dialogs.c index a425534fa87..34698554f37 100644 --- a/dlls/wininet/dialogs.c +++ b/dlls/wininet/dialogs.c @@ -346,7 +346,7 @@ static INT_PTR WINAPI WININET_PasswordDialog( } if( wParam == IDCANCEL ) { - EndDialog( hdlg, 0 ); + EndDialog( hdlg, ERROR_CANCELLED ); return TRUE; } break; -- 2.31.1
participants (1)
-
Dmitry Timoshkov