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
3aefc3a4
Commit
3aefc3a4
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: Set reference data to zero on failure for GetWindowSubclass().
parent
9b9fef2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
commctrl.c
dlls/comctl32/commctrl.c
+4
-1
subclass.c
dlls/comctl32/tests/subclass.c
+0
-3
No files found.
dlls/comctl32/commctrl.c
View file @
3aefc3a4
...
...
@@ -1173,7 +1173,7 @@ BOOL WINAPI GetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
/* See if we have been called for this window */
stack
=
GetPropW
(
hWnd
,
COMCTL32_wSubclass
);
if
(
!
stack
)
return
FALSE
;
goto
done
;
proc
=
stack
->
SubclassProcs
;
while
(
proc
)
{
...
...
@@ -1186,6 +1186,9 @@ BOOL WINAPI GetWindowSubclass (HWND hWnd, SUBCLASSPROC pfnSubclass,
proc
=
proc
->
next
;
}
done:
if
(
pdwRef
)
*
pdwRef
=
0
;
return
FALSE
;
}
...
...
dlls/comctl32/tests/subclass.c
View file @
3aefc3a4
...
...
@@ -356,19 +356,16 @@ static void test_GetWindowSubclass(void)
data
=
0xdeadbeef
;
ret
=
pGetWindowSubclass
(
NULL
,
wnd_proc_sub
,
2
,
&
data
);
ok
(
!
ret
,
"GetWindowSubclass succeeded.
\n
"
);
todo_wine
ok
(
data
==
0
,
"Got unexpected data %#Ix.
\n
"
,
data
);
data
=
0xdeadbeef
;
ret
=
pGetWindowSubclass
(
hwnd
,
NULL
,
2
,
&
data
);
ok
(
!
ret
,
"GetWindowSubclass succeeded.
\n
"
);
todo_wine
ok
(
data
==
0
,
"Got unexpected data %#Ix.
\n
"
,
data
);
data
=
0xdeadbeef
;
ret
=
pGetWindowSubclass
(
hwnd
,
wnd_proc_sub
,
0
,
&
data
);
ok
(
!
ret
,
"GetWindowSubclass succeeded.
\n
"
);
todo_wine
ok
(
data
==
0
,
"Got unexpected data %#Ix.
\n
"
,
data
);
ret
=
pGetWindowSubclass
(
hwnd
,
wnd_proc_sub
,
2
,
NULL
);
...
...
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