Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c56ce791
Commit
c56ce791
authored
Feb 04, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
credui/tests: Make sure to use return value (LLVM/Clang).
parent
d6d749f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
credui.c
dlls/credui/tests/credui.c
+14
-0
No files found.
dlls/credui/tests/credui.c
View file @
c56ce791
...
...
@@ -83,7 +83,10 @@ static void test_CredUIPromptForCredentials(void)
&
save
,
CREDUI_FLAGS_EXPECT_CONFIRMATION
);
ok
(
ret
==
ERROR_SUCCESS
||
ret
==
ERROR_CANCELLED
,
"CredUIPromptForCredentials failed with error %d
\n
"
,
ret
);
if
(
ret
==
ERROR_SUCCESS
)
{
ret
=
CredUIConfirmCredentialsW
(
wszServerName
,
FALSE
);
ok
(
ret
==
ERROR_SUCCESS
,
"CredUIConfirmCredentials failed with error %d
\n
"
,
ret
);
}
credui_info
.
pszCaptionText
=
wszCaption1
;
ret
=
CredUIPromptForCredentialsW
(
&
credui_info
,
wszServerName
,
NULL
,
...
...
@@ -93,7 +96,10 @@ static void test_CredUIPromptForCredentials(void)
&
save
,
CREDUI_FLAGS_EXPECT_CONFIRMATION
);
ok
(
ret
==
ERROR_SUCCESS
||
ret
==
ERROR_CANCELLED
,
"CredUIPromptForCredentials failed with error %d
\n
"
,
ret
);
if
(
ret
==
ERROR_SUCCESS
)
{
ret
=
CredUIConfirmCredentialsW
(
wszServerName
,
FALSE
);
ok
(
ret
==
ERROR_SUCCESS
,
"CredUIConfirmCredentials failed with error %d
\n
"
,
ret
);
}
credui_info
.
pszCaptionText
=
wszCaption2
;
ret
=
CredUIPromptForCredentialsW
(
&
credui_info
,
wszServerName
,
NULL
,
0
,
...
...
@@ -102,7 +108,11 @@ static void test_CredUIPromptForCredentials(void)
NULL
,
CREDUI_FLAGS_INCORRECT_PASSWORD
|
CREDUI_FLAGS_EXPECT_CONFIRMATION
);
ok
(
ret
==
ERROR_SUCCESS
||
ret
==
ERROR_CANCELLED
,
"CredUIPromptForCredentials failed with error %d
\n
"
,
ret
);
if
(
ret
==
ERROR_SUCCESS
)
{
ret
=
CredUIConfirmCredentialsW
(
wszServerName
,
FALSE
);
ok
(
ret
==
ERROR_SUCCESS
,
"CredUIConfirmCredentials failed with error %d
\n
"
,
ret
);
}
save
=
TRUE
;
credui_info
.
pszCaptionText
=
wszCaption3
;
...
...
@@ -122,7 +132,11 @@ static void test_CredUIPromptForCredentials(void)
ok
(
ret
==
ERROR_SUCCESS
||
ret
==
ERROR_CANCELLED
,
"CredUIPromptForCredentials failed with error %d
\n
"
,
ret
);
ok
(
!
save
,
"save flag should have been untouched
\n
"
);
if
(
ret
==
ERROR_SUCCESS
)
{
ret
=
CredUIConfirmCredentialsW
(
wszServerName
,
FALSE
);
ok
(
ret
==
ERROR_SUCCESS
,
"CredUIConfirmCredentials failed with error %d
\n
"
,
ret
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment