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
40029642
Commit
40029642
authored
Nov 17, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
credui: Check for and don't add duplicates when filling the username combo box.
parent
cdb6e9ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
credui_main.c
dlls/credui/credui_main.c
+13
-0
No files found.
dlls/credui/credui_main.c
View file @
40029642
...
...
@@ -142,6 +142,8 @@ static void CredDialogFillUsernameCombo(HWND hwndUsername, struct cred_dialog_pa
for
(
i
=
0
;
i
<
count
;
i
++
)
{
COMBOBOXEXITEMW
comboitem
;
DWORD
j
;
BOOL
duplicate
=
FALSE
;
if
(
params
->
dwFlags
&
CREDUI_FLAGS_GENERIC_CREDENTIALS
)
{
...
...
@@ -154,6 +156,17 @@ static void CredDialogFillUsernameCombo(HWND hwndUsername, struct cred_dialog_pa
continue
;
}
/* don't add another item with the same name if we've already added it */
for
(
j
=
0
;
j
<
i
;
j
++
)
if
(
!
strcmpW
(
credentials
[
i
]
->
UserName
,
credentials
[
j
]
->
UserName
))
{
duplicate
=
TRUE
;
break
;
}
if
(
duplicate
)
continue
;
comboitem
.
mask
=
CBEIF_TEXT
;
comboitem
.
iItem
=
-
1
;
comboitem
.
pszText
=
credentials
[
i
]
->
UserName
;
...
...
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