Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9b9fef2e
Commit
9b9fef2e
authored
Aug 16, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Aug 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Check reference data pointer before using it.
Fix the crash when opening notepad++ v8.4.4 preference dialog before
e52e42b8
.
parent
f7443102
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
commctrl.c
dlls/comctl32/commctrl.c
+2
-1
subclass.c
dlls/comctl32/tests/subclass.c
+0
-4
No files found.
dlls/comctl32/commctrl.c
View file @
9b9fef2e
...
...
@@ -1179,7 +1179,8 @@ BOOL WINAPI GetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
while
(
proc
)
{
if
((
proc
->
id
==
uID
)
&&
(
proc
->
subproc
==
pfnSubclass
))
{
*
pdwRef
=
proc
->
ref
;
if
(
pdwRef
)
*
pdwRef
=
proc
->
ref
;
return
TRUE
;
}
proc
=
proc
->
next
;
...
...
dlls/comctl32/tests/subclass.c
View file @
9b9fef2e
...
...
@@ -371,12 +371,8 @@ static void test_GetWindowSubclass(void)
todo_wine
ok
(
data
==
0
,
"Got unexpected data %#Ix.
\n
"
,
data
);
/* Crash on Wine */
if
(
strcmp
(
winetest_platform
,
"wine"
))
{
ret
=
pGetWindowSubclass
(
hwnd
,
wnd_proc_sub
,
2
,
NULL
);
ok
(
ret
,
"GetWindowSubclass failed.
\n
"
);
}
data
=
0xdeadbeef
;
ret
=
pGetWindowSubclass
(
hwnd
,
wnd_proc_sub
,
2
,
&
data
);
...
...
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