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
48cb3a30
Commit
48cb3a30
authored
Dec 02, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Restore original procedure to let control clean up.
parent
941d69e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
class.c
dlls/user32/tests/class.c
+6
-1
No files found.
dlls/user32/tests/class.c
View file @
48cb3a30
...
...
@@ -707,6 +707,7 @@ static void test_builtinproc(void)
oldproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
ClassTest_WndProc
);
ok
(
IS_WNDPROC_HANDLE
(
oldproc
)
==
FALSE
,
"Class %s shouldn't return a handle
\n
"
,
NORMAL_CLASSES
[
i
]);
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
oldproc
);
DestroyWindow
(
hwnd
);
}
...
...
@@ -747,6 +748,8 @@ static void test_builtinproc(void)
CallWindowProcW
((
WNDPROC
)
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
),
hwnd
,
WM_GETTEXT
,
120
,
(
LPARAM
)
buf
);
ok
(
memcmp
(
buf
,
classW
,
sizeof
(
classW
))
==
0
,
"WM_GETTEXT invalid return
\n
"
);
SetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
oldproc
);
DestroyWindow
(
hwnd
);
hwnd
=
CreateWindowA
(
WC_EDITA
,
classA
,
WS_OVERLAPPEDWINDOW
,
...
...
@@ -768,7 +771,7 @@ static void test_builtinproc(void)
CallWindowProcW
((
WNDPROC
)
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
),
hwnd
,
WM_GETTEXT
,
120
,
(
LPARAM
)
buf
);
ok
(
memcmp
(
buf
,
classW
,
sizeof
(
classW
))
==
0
,
"WM_GETTEXT invalid return
\n
"
);
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
ClassTest_WndProc
);
oldproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
ClassTest_WndProc
);
SetWindowTextW
(
hwnd
,
unistring
);
CallWindowProcW
((
WNDPROC
)
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
),
hwnd
,
WM_GETTEXT
,
120
,
(
LPARAM
)
buf
);
ok
(
memcmp
(
buf
,
unistring
,
sizeof
(
unistring
))
==
0
,
"WM_GETTEXT invalid return
\n
"
);
...
...
@@ -781,6 +784,8 @@ static void test_builtinproc(void)
CallWindowProcA
((
WNDPROC
)
GetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
),
hwnd
,
WM_GETTEXT
,
120
,
(
LPARAM
)
buf
);
ok
(
memcmp
(
buf
,
classA
,
sizeof
(
classA
))
==
0
,
"WM_GETTEXT invalid return
\n
"
);
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
oldproc
);
DestroyWindow
(
hwnd
);
}
...
...
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