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
078c6e5a
Commit
078c6e5a
authored
Jan 26, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Skip restoring window proc if it has been modified.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=43073
parent
8387d2fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
commctrl.c
dlls/comctl32/commctrl.c
+3
-1
subclass.c
dlls/comctl32/tests/subclass.c
+1
-1
No files found.
dlls/comctl32/commctrl.c
View file @
078c6e5a
...
...
@@ -1243,7 +1243,9 @@ BOOL WINAPI RemoveWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR u
if
(
!
stack
->
SubclassProcs
&&
!
stack
->
running
)
{
TRACE
(
"Last Subclass removed, cleaning up
\n
"
);
/* clean up our heap and reset the original window procedure */
if
(
stack
->
is_unicode
)
if
((
WNDPROC
)
GetWindowLongPtrW
(
hWnd
,
GWLP_WNDPROC
)
!=
COMCTL32_SubclassProc
)
WARN
(
"Window procedure has been modified, skipping restore
\n
"
);
else
if
(
stack
->
is_unicode
)
SetWindowLongPtrW
(
hWnd
,
GWLP_WNDPROC
,
(
DWORD_PTR
)
stack
->
origproc
);
else
SetWindowLongPtrA
(
hWnd
,
GWLP_WNDPROC
,
(
DWORD_PTR
)
stack
->
origproc
);
...
...
dlls/comctl32/tests/subclass.c
View file @
078c6e5a
...
...
@@ -192,7 +192,7 @@ static void check_unicode_(int line, HWND hwnd, DWORD flags)
else
if
(
flags
&
EXPECT_WNDPROC_1
)
ok_
(
__FILE__
,
line
)(
proc
==
wnd_proc_1
,
"got proc %p
\n
"
,
proc
);
else
if
(
flags
&
EXPECT_WNDPROC_3
)
todo_wine_if
(
proc
==
wnd_proc_1
)
ok_
(
__FILE__
,
line
)(
proc
==
wnd_proc_3
,
"got proc %p
\n
"
,
proc
);
ok_
(
__FILE__
,
line
)(
proc
==
wnd_proc_3
,
"got proc %p
\n
"
,
proc
);
else
ok_
(
__FILE__
,
line
)(
!
IS_WNDPROC_HANDLE
(
proc
),
"got proc %p
\n
"
,
proc
);
}
...
...
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