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
69d44b54
Commit
69d44b54
authored
Aug 08, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
credui: Avoid TRUE:FALSE conditional expressions,.
parent
df158e43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
credui_main.c
dlls/credui/credui_main.c
+3
-3
No files found.
dlls/credui/credui_main.c
View file @
69d44b54
...
...
@@ -337,7 +337,7 @@ static void CredDialogHideBalloonTip(HWND hwndDlg, struct cred_dialog_params *pa
static
inline
BOOL
CredDialogCapsLockOn
(
void
)
{
return
GetKeyState
(
VK_CAPITAL
)
&
0x1
?
TRUE
:
FALSE
;
return
(
GetKeyState
(
VK_CAPITAL
)
&
0x1
)
!=
0
;
}
static
LRESULT
CALLBACK
CredDialogPasswordSubclassProc
(
HWND
hwnd
,
UINT
uMsg
,
...
...
@@ -649,13 +649,13 @@ DWORD WINAPI CredUIPromptForCredentialsW(PCREDUI_INFOW pUIInfo,
len
=
strlenW
(
params
.
pszPassword
);
entry
->
pszPassword
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
memcpy
(
entry
->
pszPassword
,
params
.
pszPassword
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
entry
->
generic
=
dwFlags
&
CREDUI_FLAGS_GENERIC_CREDENTIALS
?
TRUE
:
FALSE
;
entry
->
generic
=
(
dwFlags
&
CREDUI_FLAGS_GENERIC_CREDENTIALS
)
!=
0
;
LeaveCriticalSection
(
&
csPendingCredentials
);
}
else
result
=
save_credentials
(
pszTargetName
,
pszUsername
,
pszPassword
,
dwFlags
&
CREDUI_FLAGS_GENERIC_CREDENTIALS
?
TRUE
:
FALSE
);
(
dwFlags
&
CREDUI_FLAGS_GENERIC_CREDENTIALS
)
!=
0
);
}
return
result
;
...
...
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