Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bb529a49
Commit
bb529a49
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: Split CredDialogProc out into separate functions.
parent
678d3965
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
17 deletions
+27
-17
credui_main.c
dlls/credui/credui_main.c
+27
-17
No files found.
dlls/credui/credui_main.c
View file @
bb529a49
...
...
@@ -130,15 +130,8 @@ struct cred_dialog_params
DWORD
dwFlags
;
};
static
INT_PTR
CALLBACK
CredDialogProc
(
HWND
hwndDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
static
BOOL
CredDialogInit
(
HWND
hwndDlg
,
struct
cred_dialog_params
*
params
)
{
switch
(
uMsg
)
{
case
WM_INITDIALOG
:
{
struct
cred_dialog_params
*
params
=
(
struct
cred_dialog_params
*
)
lParam
;
SetWindowLongPtrW
(
hwndDlg
,
DWLP_USER
,
(
LONG_PTR
)
params
);
if
(
params
->
pszMessageText
)
SetDlgItemTextW
(
hwndDlg
,
IDC_MESSAGE
,
params
->
pszMessageText
);
...
...
@@ -175,14 +168,10 @@ static INT_PTR CALLBACK CredDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
CheckDlgButton
(
hwndDlg
,
IDC_SAVE
,
BST_CHECKED
);
return
FALSE
;
}
case
WM_COMMAND
:
switch
(
wParam
)
{
case
MAKELONG
(
IDOK
,
BN_CLICKED
):
{
struct
cred_dialog_params
*
params
=
(
struct
cred_dialog_params
*
)
GetWindowLongPtrW
(
hwndDlg
,
DWLP_USER
);
}
static
void
CredDialogCommandOk
(
HWND
hwndDlg
,
struct
cred_dialog_params
*
params
)
{
HWND
hwndUsername
=
GetDlgItem
(
hwndDlg
,
IDC_USERNAME
);
LPWSTR
user
;
INT
len
;
...
...
@@ -195,7 +184,7 @@ static INT_PTR CALLBACK CredDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
if
(
!
user
[
0
])
{
HeapFree
(
GetProcessHeap
(),
0
,
user
);
return
TRUE
;
return
;
}
if
(
!
strchrW
(
user
,
'\\'
)
&&
!
strchrW
(
user
,
'@'
))
...
...
@@ -222,6 +211,27 @@ static INT_PTR CALLBACK CredDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
params
->
ulPasswordMaxChars
);
EndDialog
(
hwndDlg
,
IDOK
);
}
static
INT_PTR
CALLBACK
CredDialogProc
(
HWND
hwndDlg
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
uMsg
)
{
case
WM_INITDIALOG
:
{
struct
cred_dialog_params
*
params
=
(
struct
cred_dialog_params
*
)
lParam
;
return
CredDialogInit
(
hwndDlg
,
params
);
}
case
WM_COMMAND
:
switch
(
wParam
)
{
case
MAKELONG
(
IDOK
,
BN_CLICKED
):
{
struct
cred_dialog_params
*
params
=
(
struct
cred_dialog_params
*
)
GetWindowLongPtrW
(
hwndDlg
,
DWLP_USER
);
CredDialogCommandOk
(
hwndDlg
,
params
);
return
TRUE
;
}
case
MAKELONG
(
IDCANCEL
,
BN_CLICKED
):
...
...
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