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
2d0704f7
Commit
2d0704f7
authored
Feb 05, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix pointer conversion warnings.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b8f06498
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dialog.c
dlls/user32/tests/dialog.c
+5
-5
No files found.
dlls/user32/tests/dialog.c
View file @
2d0704f7
...
...
@@ -1247,7 +1247,7 @@ enum defdlgproc_text
static
INT_PTR
CALLBACK
test_aw_conversion_dlgprocA
(
HWND
hdlg
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
int
mode
=
(
int
)
GetPropA
(
hdlg
,
"test_mode"
);
int
mode
=
HandleToULong
(
GetPropA
(
hdlg
,
"test_mode"
)
);
WCHAR
*
text
=
(
WCHAR
*
)
lparam
;
char
*
textA
=
(
char
*
)
lparam
;
...
...
@@ -1290,7 +1290,7 @@ static INT_PTR CALLBACK test_aw_conversion_dlgprocA(HWND hdlg, UINT msg, WPARAM
static
INT_PTR
CALLBACK
test_aw_conversion_dlgprocW
(
HWND
hdlg
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
int
mode
=
(
int
)
GetPropA
(
hdlg
,
"test_mode"
);
int
mode
=
HandleToULong
(
GetPropA
(
hdlg
,
"test_mode"
)
);
WCHAR
*
text
=
(
WCHAR
*
)
lparam
;
char
*
textA
=
(
char
*
)
lparam
;
...
...
@@ -1329,18 +1329,18 @@ static void dlg_test_aw_message(HWND hdlg, UINT msg)
{
LRESULT
ret
;
SetPropA
(
hdlg
,
"test_mode"
,
DLGPROCTEXT_CONTEXT
);
SetPropA
(
hdlg
,
"test_mode"
,
ULongToHandle
(
DLGPROCTEXT_CONTEXT
)
);
ret
=
SendMessageA
(
hdlg
,
msg
,
0
,
(
LPARAM
)
"WndText"
);
ok
(
ret
==
0
,
"Unexpected retval %ld.
\n
"
,
ret
);
ret
=
SendMessageW
(
hdlg
,
msg
,
0
,
(
LPARAM
)
testtextW
);
ok
(
ret
==
0
,
"Unexpected retval %ld.
\n
"
,
ret
);
SetPropA
(
hdlg
,
"test_mode"
,
(
void
*
)
DLGPROCTEXT_A
);
SetPropA
(
hdlg
,
"test_mode"
,
ULongToHandle
(
DLGPROCTEXT_A
)
);
ret
=
DefDlgProcA
(
hdlg
,
msg
,
0
,
(
LPARAM
)
"WndText"
);
ok
(
ret
==
0
,
"Unexpected retval %ld.
\n
"
,
ret
);
SetPropA
(
hdlg
,
"test_mode"
,
(
void
*
)
DLGPROCTEXT_W
);
SetPropA
(
hdlg
,
"test_mode"
,
ULongToHandle
(
DLGPROCTEXT_W
)
);
ret
=
DefDlgProcW
(
hdlg
,
msg
,
0
,
(
LPARAM
)
testtextW
);
ok
(
ret
==
0
,
"Unexpected retval %ld.
\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