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
4856c299
Commit
4856c299
authored
Jan 02, 2011
by
Greg Geldorp
Committed by
Alexandre Julliard
Jan 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Skip DefWindowProc tests on Vista+.
parent
9c9762d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
class.c
dlls/user32/tests/class.c
+13
-1
No files found.
dlls/user32/tests/class.c
View file @
4856c299
...
@@ -617,6 +617,7 @@ static void test_builtinproc(void)
...
@@ -617,6 +617,7 @@ static void test_builtinproc(void)
static
const
WCHAR
classW
[]
=
{
'd'
,
'e'
,
'f'
,
't'
,
'e'
,
's'
,
't'
,
0
};
static
const
WCHAR
classW
[]
=
{
'd'
,
'e'
,
'f'
,
't'
,
'e'
,
's'
,
't'
,
0
};
WCHAR
unistring
[]
=
{
0x142
,
0x40e
,
0x3b4
,
0
};
/* a string that would be destroyed by a W->A->W conversion */
WCHAR
unistring
[]
=
{
0x142
,
0x40e
,
0x3b4
,
0
};
/* a string that would be destroyed by a W->A->W conversion */
WNDPROC
pDefWindowProcA
,
pDefWindowProcW
;
WNDPROC
pDefWindowProcA
,
pDefWindowProcW
;
WNDPROC
pNtdllDefWindowProcA
,
pNtdllDefWindowProcW
;
WNDPROC
oldproc
;
WNDPROC
oldproc
;
WNDCLASSEXA
cls
;
/* the memory layout of WNDCLASSEXA and WNDCLASSEXW is the same */
WNDCLASSEXA
cls
;
/* the memory layout of WNDCLASSEXA and WNDCLASSEXW is the same */
WCHAR
buf
[
128
];
WCHAR
buf
[
128
];
...
@@ -626,7 +627,17 @@ static void test_builtinproc(void)
...
@@ -626,7 +627,17 @@ static void test_builtinproc(void)
pDefWindowProcA
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"user32.dll"
),
"DefWindowProcA"
);
pDefWindowProcA
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"user32.dll"
),
"DefWindowProcA"
);
pDefWindowProcW
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"user32.dll"
),
"DefWindowProcW"
);
pDefWindowProcW
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"user32.dll"
),
"DefWindowProcW"
);
pNtdllDefWindowProcA
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"ntdll.dll"
),
"NtdllDefWindowProc_A"
);
pNtdllDefWindowProcW
=
(
void
*
)
GetProcAddress
(
GetModuleHandle
(
"ntdll.dll"
),
"NtdllDefWindowProc_W"
);
/* On Vista+, the user32.dll export DefWindowProcA/W is forwarded to */
/* ntdll.NtdllDefWindowProc_A/W. However, the wndproc returned by */
/* GetClassLong/GetWindowLong points to an unexported user32 function */
if
(
pDefWindowProcA
==
pNtdllDefWindowProcA
&&
pDefWindowProcW
==
pNtdllDefWindowProcW
)
skip
(
"user32.DefWindowProcX forwarded to ntdll.NtdllDefWindowProc_X
\n
"
);
else
{
for
(
i
=
0
;
i
<
4
;
i
++
)
for
(
i
=
0
;
i
<
4
;
i
++
)
{
{
ZeroMemory
(
&
cls
,
sizeof
(
cls
));
ZeroMemory
(
&
cls
,
sizeof
(
cls
));
...
@@ -666,6 +677,7 @@ static void test_builtinproc(void)
...
@@ -666,6 +677,7 @@ static void test_builtinproc(void)
DestroyWindow
(
hwnd
);
DestroyWindow
(
hwnd
);
UnregisterClass
((
LPSTR
)(
DWORD_PTR
)
atom
,
GetModuleHandle
(
NULL
));
UnregisterClass
((
LPSTR
)(
DWORD_PTR
)
atom
,
GetModuleHandle
(
NULL
));
}
}
}
/* built-in winproc - window A/W type automatically detected */
/* built-in winproc - window A/W type automatically detected */
ZeroMemory
(
&
cls
,
sizeof
(
cls
));
ZeroMemory
(
&
cls
,
sizeof
(
cls
));
...
...
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