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
8cd1d583
Commit
8cd1d583
authored
Nov 21, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Drop superfluous function pointer casts.
parent
e6cf9fbc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
53 deletions
+53
-53
dialog.c
dlls/user32/tests/dialog.c
+1
-1
edit.c
dlls/user32/tests/edit.c
+51
-51
msg.c
dlls/user32/tests/msg.c
+1
-1
No files found.
dlls/user32/tests/dialog.c
View file @
8cd1d583
...
...
@@ -1150,7 +1150,7 @@ static void test_DialogBoxParamA(void)
static
void
test_DisabledDialogTest
(
void
)
{
g_terminated
=
FALSE
;
DialogBoxParam
(
g_hinst
,
"IDD_DIALOG"
,
NULL
,
(
DLGPROC
)
disabled_test_proc
,
0
);
DialogBoxParam
(
g_hinst
,
"IDD_DIALOG"
,
NULL
,
disabled_test_proc
,
0
);
ok
(
FALSE
==
g_terminated
,
"dialog with disabled ok button has been terminated
\n
"
);
}
...
...
dlls/user32/tests/edit.c
View file @
8cd1d583
...
...
@@ -1950,57 +1950,57 @@ static void test_edit_dialog(void)
int
r
;
/* from bug 11841 */
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
0
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
edit_dialog_proc
,
0
);
ok
(
333
==
r
,
"Expected %d, got %d
\n
"
,
333
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
1
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
edit_dialog_proc
,
1
);
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
2
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
edit_dialog_proc
,
2
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* more tests for WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
3
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
edit_dialog_proc
,
3
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
4
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
edit_dialog_proc
,
4
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
5
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
edit_dialog_proc
,
5
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* more tests for WM_KEYDOWN + WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
6
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
edit_dialog_proc
,
6
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
7
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
edit_dialog_proc
,
7
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
8
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_READONLY_DIALOG"
,
NULL
,
edit_dialog_proc
,
8
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests with an editable edit control */
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
0
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
0
);
ok
(
333
==
r
,
"Expected %d, got %d
\n
"
,
333
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
1
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
1
);
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
2
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
2
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests for WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
3
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
3
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
4
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
4
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
5
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
5
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests for WM_KEYDOWN + WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
6
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
6
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
7
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
7
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
8
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
8
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* multiple tab tests */
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
9
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
9
);
ok
(
22
==
r
,
"Expected %d, got %d
\n
"
,
22
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_dialog_proc
,
10
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_DIALOG"
,
NULL
,
edit_dialog_proc
,
10
);
ok
(
33
==
r
,
"Expected %d, got %d
\n
"
,
33
,
r
);
}
...
...
@@ -2009,13 +2009,13 @@ static void test_multi_edit_dialog(void)
int
r
;
/* test for multiple edit dialogs (bug 12319) */
r
=
DialogBoxParam
(
hinst
,
"MULTI_EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
multi_edit_dialog_proc
,
0
);
r
=
DialogBoxParam
(
hinst
,
"MULTI_EDIT_DIALOG"
,
NULL
,
multi_edit_dialog_proc
,
0
);
ok
(
2222
==
r
,
"Expected %d, got %d
\n
"
,
2222
,
r
);
r
=
DialogBoxParam
(
hinst
,
"MULTI_EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
multi_edit_dialog_proc
,
1
);
r
=
DialogBoxParam
(
hinst
,
"MULTI_EDIT_DIALOG"
,
NULL
,
multi_edit_dialog_proc
,
1
);
ok
(
1111
==
r
,
"Expected %d, got %d
\n
"
,
1111
,
r
);
r
=
DialogBoxParam
(
hinst
,
"MULTI_EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
multi_edit_dialog_proc
,
2
);
r
=
DialogBoxParam
(
hinst
,
"MULTI_EDIT_DIALOG"
,
NULL
,
multi_edit_dialog_proc
,
2
);
ok
(
2222
==
r
,
"Expected %d, got %d
\n
"
,
2222
,
r
);
r
=
DialogBoxParam
(
hinst
,
"MULTI_EDIT_DIALOG"
,
NULL
,
(
DLGPROC
)
multi_edit_dialog_proc
,
3
);
r
=
DialogBoxParam
(
hinst
,
"MULTI_EDIT_DIALOG"
,
NULL
,
multi_edit_dialog_proc
,
3
);
ok
(
11
==
r
,
"Expected %d, got %d
\n
"
,
11
,
r
);
}
...
...
@@ -2024,27 +2024,27 @@ static void test_wantreturn_edit_dialog(void)
int
r
;
/* tests for WM_KEYDOWN */
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_wantreturn_dialog_proc
,
0
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
edit_wantreturn_dialog_proc
,
0
);
ok
(
333
==
r
,
"Expected %d, got %d
\n
"
,
333
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_wantreturn_dialog_proc
,
1
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
edit_wantreturn_dialog_proc
,
1
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_wantreturn_dialog_proc
,
2
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
edit_wantreturn_dialog_proc
,
2
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests for WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_wantreturn_dialog_proc
,
3
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
edit_wantreturn_dialog_proc
,
3
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_wantreturn_dialog_proc
,
4
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
edit_wantreturn_dialog_proc
,
4
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_wantreturn_dialog_proc
,
5
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
edit_wantreturn_dialog_proc
,
5
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests for WM_KEYDOWN + WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_wantreturn_dialog_proc
,
6
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
edit_wantreturn_dialog_proc
,
6
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_wantreturn_dialog_proc
,
7
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
edit_wantreturn_dialog_proc
,
7
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_wantreturn_dialog_proc
,
8
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_WANTRETURN_DIALOG"
,
NULL
,
edit_wantreturn_dialog_proc
,
8
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
}
...
...
@@ -2053,51 +2053,51 @@ static void test_singleline_wantreturn_edit_dialog(void)
int
r
;
/* tests for WM_KEYDOWN */
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
0
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
0
);
ok
(
222
==
r
,
"Expected %d, got %d
\n
"
,
222
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
1
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
1
);
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
2
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
2
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests for WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
3
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
3
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
4
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
4
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
5
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
5
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests for WM_KEYDOWN + WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
6
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
6
);
ok
(
222
==
r
,
"Expected %d, got %d
\n
"
,
222
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
7
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
7
);
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
8
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
8
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests for WM_KEYDOWN */
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
0
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
0
);
ok
(
222
==
r
,
"Expected %d, got %d
\n
"
,
222
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
1
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
1
);
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
2
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
2
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests for WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
3
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
3
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
4
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
4
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
5
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
5
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
/* tests for WM_KEYDOWN + WM_CHAR */
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
6
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
6
);
ok
(
222
==
r
,
"Expected %d, got %d
\n
"
,
222
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
7
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
7
);
ok
(
111
==
r
,
"Expected %d, got %d
\n
"
,
111
,
r
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
(
DLGPROC
)
edit_singleline_dialog_proc
,
8
);
r
=
DialogBoxParam
(
hinst
,
"EDIT_SINGLELINE_WANTRETURN_DIALOG"
,
NULL
,
edit_singleline_dialog_proc
,
8
);
ok
(
444
==
r
,
"Expected %d, got %d
\n
"
,
444
,
r
);
}
...
...
dlls/user32/tests/msg.c
View file @
8cd1d583
...
...
@@ -11236,7 +11236,7 @@ static void test_dialog_messages(void)
cls
.
lpszClassName
=
"MyDialogClass"
;
cls
.
hInstance
=
GetModuleHandle
(
0
);
/* need a cast since a dlgproc is used as a wndproc */
cls
.
lpfnWndProc
=
(
WNDPROC
)
test_dlg_proc
;
cls
.
lpfnWndProc
=
test_dlg_proc
;
if
(
!
RegisterClass
(
&
cls
))
assert
(
0
);
hdlg
=
CreateDialogParam
(
0
,
"CLASS_TEST_DIALOG_2"
,
0
,
test_dlg_proc
,
0
);
...
...
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