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
0049e563
Commit
0049e563
authored
Aug 01, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Add a couple of missing bits to the SetWindowLong test.
parent
166f1999
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
win.c
dlls/user/tests/win.c
+5
-0
No files found.
dlls/user/tests/win.c
View file @
0049e563
...
...
@@ -3831,6 +3831,7 @@ static int check_error(DWORD actual, DWORD expected)
static
void
test_SetWindowLong
(
void
)
{
LONG_PTR
retval
;
WNDPROC
old_window_procW
;
SetLastError
(
0xdeadbeef
);
retval
=
SetWindowLongPtr
(
NULL
,
GWLP_WNDPROC
,
0
);
...
...
@@ -3854,11 +3855,15 @@ static void test_SetWindowLong(void)
"SetWindowLongPtr on invalid window proc shouldn't have changed the value returned by GetWindowLongPtr, instead of changing it to 0x%x
\n
"
,
retval
);
ok
(
!
IsWindowUnicode
(
hwndMain
),
"hwndMain shouldn't be Unicode
\n
"
);
old_window_procW
=
(
WNDPROC
)
GetWindowLongPtrW
(
hwndMain
,
GWLP_WNDPROC
);
SetLastError
(
0xdeadbeef
);
retval
=
SetWindowLongPtrW
(
hwndMain
,
GWLP_WNDPROC
,
0
);
if
(
GetLastError
()
!=
ERROR_CALL_NOT_IMPLEMENTED
)
{
ok
(
GetLastError
()
==
0xdeadbeef
,
"SetWindowLongPtr shouldn't have set the last error, instead of setting it to %ld
\n
"
,
GetLastError
());
ok
(
retval
!=
0
,
"SetWindowLongPtr error %ld
\n
"
,
GetLastError
());
ok
((
WNDPROC
)
retval
==
old_window_procW
,
"SetWindowLongPtr on invalid window proc shouldn't have changed the value returned by GetWindowLongPtr, instead of changing it to 0x%x
\n
"
,
retval
);
ok
(
IsWindowUnicode
(
hwndMain
),
"hwndMain should now be Unicode
\n
"
);
/* set it back to ANSI */
...
...
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