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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
commctrl.c
dlls/comctl32/commctrl.c
+1
-0
subclass.c
dlls/comctl32/tests/subclass.c
+0
-4
No files found.
dlls/comctl32/commctrl.c
View file @
9b9fef2e
...
@@ -1179,6 +1179,7 @@ BOOL WINAPI GetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
...
@@ -1179,6 +1179,7 @@ BOOL WINAPI GetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
while
(
proc
)
{
while
(
proc
)
{
if
((
proc
->
id
==
uID
)
&&
if
((
proc
->
id
==
uID
)
&&
(
proc
->
subproc
==
pfnSubclass
))
{
(
proc
->
subproc
==
pfnSubclass
))
{
if
(
pdwRef
)
*
pdwRef
=
proc
->
ref
;
*
pdwRef
=
proc
->
ref
;
return
TRUE
;
return
TRUE
;
}
}
...
...
dlls/comctl32/tests/subclass.c
View file @
9b9fef2e
...
@@ -371,12 +371,8 @@ static void test_GetWindowSubclass(void)
...
@@ -371,12 +371,8 @@ static void test_GetWindowSubclass(void)
todo_wine
todo_wine
ok
(
data
==
0
,
"Got unexpected data %#Ix.
\n
"
,
data
);
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
);
ret
=
pGetWindowSubclass
(
hwnd
,
wnd_proc_sub
,
2
,
NULL
);
ok
(
ret
,
"GetWindowSubclass failed.
\n
"
);
ok
(
ret
,
"GetWindowSubclass failed.
\n
"
);
}
data
=
0xdeadbeef
;
data
=
0xdeadbeef
;
ret
=
pGetWindowSubclass
(
hwnd
,
wnd_proc_sub
,
2
,
&
data
);
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