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
5bd4038f
Commit
5bd4038f
authored
Oct 02, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Replace GWL_WNDPROC by GWLP_WNDPROC.
parent
9fd70324
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
class.c
dlls/user32/tests/class.c
+3
-3
No files found.
dlls/user32/tests/class.c
View file @
5bd4038f
...
...
@@ -636,7 +636,7 @@ static void test_defwndproc(void)
ok
(
IsWindowUnicode
(
hwnd
),
"Windows should have remained Unicode
\n
"
);
ok
(
GetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
)
==
(
LONG_PTR
)
pDefWindowProcW
,
"Invalid ANSI winproc
\n
"
);
ok
(
GetWindowLongPtrA
(
hwnd
,
GWLP_WNDPROC
)
==
(
LONG_PTR
)
pDefWindowProcA
,
"Invalid Unicode winproc
\n
"
);
SetWindowLongPtrA
(
hwnd
,
GWL_WNDPROC
,
(
LONG_PTR
)
ClassTest_WndProc
);
SetWindowLongPtrA
(
hwnd
,
GWL
P
_WNDPROC
,
(
LONG_PTR
)
ClassTest_WndProc
);
ok
(
IsWindowUnicode
(
hwnd
)
==
FALSE
,
"SetWindowLongPtrA should have switched window to ANSI
\n
"
);
DestroyWindow
(
hwnd
);
...
...
@@ -654,9 +654,9 @@ static void test_defwndproc(void)
hwnd
=
CreateWindowExW
(
0
,
classW
,
NULL
,
WS_OVERLAPPEDWINDOW
,
CW_USEDEFAULT
,
CW_USEDEFAULT
,
680
,
260
,
NULL
,
NULL
,
GetModuleHandleA
(
NULL
),
0
);
ok
(
IsWindowUnicode
(
hwnd
)
==
FALSE
,
"Window should be ANSI
\n
"
);
SetWindowLongPtrW
(
hwnd
,
GWL_WNDPROC
,
(
LONG_PTR
)
ClassTest_WndProc
);
SetWindowLongPtrW
(
hwnd
,
GWL
P
_WNDPROC
,
(
LONG_PTR
)
ClassTest_WndProc
);
ok
(
IsWindowUnicode
(
hwnd
),
"SetWindowLongPtrW should have changed window to Unicode
\n
"
);
SetWindowLongPtrA
(
hwnd
,
GWL_WNDPROC
,
(
LONG_PTR
)
ClassTest_WndProc
);
SetWindowLongPtrA
(
hwnd
,
GWL
P
_WNDPROC
,
(
LONG_PTR
)
ClassTest_WndProc
);
ok
(
IsWindowUnicode
(
hwnd
)
==
FALSE
,
"SetWindowLongPtrA should have changed window to ANSI
\n
"
);
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