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
46a48c40
Commit
46a48c40
authored
Jul 19, 2007
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Jul 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Simplify a test.
parent
f53e3141
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
28 deletions
+9
-28
class.c
dlls/user32/tests/class.c
+9
-28
No files found.
dlls/user32/tests/class.c
View file @
46a48c40
...
@@ -594,35 +594,16 @@ static void test_defwndproc()
...
@@ -594,35 +594,16 @@ static void test_defwndproc()
hwnd
=
CreateWindowA
(
classA
,
NULL
,
0
,
0
,
0
,
100
,
100
,
NULL
,
NULL
,
GetModuleHandle
(
NULL
),
NULL
);
hwnd
=
CreateWindowA
(
classA
,
NULL
,
0
,
0
,
0
,
100
,
100
,
NULL
,
NULL
,
GetModuleHandle
(
NULL
),
NULL
);
ok
(
hwnd
!=
NULL
,
"Couldn't create window i=%d
\n
"
,
i
);
ok
(
hwnd
!=
NULL
,
"Couldn't create window i=%d
\n
"
,
i
);
if
((
i
&
1
)
&&
(
i
&
2
))
{
ok
(
GetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
)
==
(
LONG_PTR
)
pDefWindowProcA
,
"Wrong ANSI wndproc: %p vs %p
\n
"
,
(
void
*
)
GetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
),
pDefWindowProcA
);
ok
(
GetClassLongPtrA
(
hwnd
,
GCLP_WNDPROC
)
==
(
ULONG_PTR
)
pDefWindowProcA
,
"Wrong ANSI wndproc: %p vs %p
\n
"
,
(
void
*
)
GetClassLongPtrA
(
hwnd
,
GCLP_WNDPROC
),
pDefWindowProcA
);
}
else
{
ok
(
GetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
)
==
(
LONG_PTR
)
pDefWindowProcA
,
"Wrong ANSI wndproc: %p vs %p
\n
"
,
(
void
*
)
GetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
),
pDefWindowProcA
);
ok
(
GetClassLongPtrA
(
hwnd
,
GCLP_WNDPROC
)
==
(
ULONG_PTR
)
pDefWindowProcA
,
"Wrong ANSI wndproc: %p vs %p
\n
"
,
(
void
*
)
GetClassLongPtrA
(
hwnd
,
GCLP_WNDPROC
),
pDefWindowProcA
);
}
if
(
!
(
i
&
1
)
&&
!
(
i
&
2
))
ok
(
GetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
)
==
(
LONG_PTR
)
pDefWindowProcA
,
"Wrong ANSI wndproc: %p vs %p
\n
"
,
{
(
void
*
)
GetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
),
pDefWindowProcA
);
ok
(
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
)
==
(
LONG_PTR
)
pDefWindowProcW
,
"Wrong Unicode wndproc: %p vs %p
\n
"
,
ok
(
GetClassLongPtrA
(
hwnd
,
GCLP_WNDPROC
)
==
(
ULONG_PTR
)
pDefWindowProcA
,
"Wrong ANSI wndproc: %p vs %p
\n
"
,
(
void
*
)
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
),
pDefWindowProcW
);
(
void
*
)
GetClassLongPtrA
(
hwnd
,
GCLP_WNDPROC
),
pDefWindowProcA
);
ok
(
GetClassLongPtrW
(
hwnd
,
GCLP_WNDPROC
)
==
(
ULONG_PTR
)
pDefWindowProcW
,
"Wrong Unicode wndproc: %p vs %p
\n
"
,
(
void
*
)
GetClassLongPtrW
(
hwnd
,
GCLP_WNDPROC
),
pDefWindowProcW
);
ok
(
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
)
==
(
LONG_PTR
)
pDefWindowProcW
,
"Wrong Unicode wndproc: %p vs %p
\n
"
,
}
(
void
*
)
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
),
pDefWindowProcW
);
else
ok
(
GetClassLongPtrW
(
hwnd
,
GCLP_WNDPROC
)
==
(
ULONG_PTR
)
pDefWindowProcW
,
"Wrong Unicode wndproc: %p vs %p
\n
"
,
{
(
void
*
)
GetClassLongPtrW
(
hwnd
,
GCLP_WNDPROC
),
pDefWindowProcW
);
ok
(
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
)
==
(
LONG_PTR
)
pDefWindowProcW
,
"Wrong Unicode wndproc: %p vs %p
\n
"
,
(
void
*
)
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
),
pDefWindowProcW
);
ok
(
GetClassLongPtrW
(
hwnd
,
GCLP_WNDPROC
)
==
(
ULONG_PTR
)
pDefWindowProcW
,
"Wrong Unicode wndproc: %p vs %p
\n
"
,
(
void
*
)
GetClassLongPtrW
(
hwnd
,
GCLP_WNDPROC
),
pDefWindowProcW
);
}
DestroyWindow
(
hwnd
);
DestroyWindow
(
hwnd
);
UnregisterClass
((
LPSTR
)(
DWORD_PTR
)
atom
,
GetModuleHandle
(
NULL
));
UnregisterClass
((
LPSTR
)(
DWORD_PTR
)
atom
,
GetModuleHandle
(
NULL
));
...
...
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