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
d9e79807
Commit
d9e79807
authored
Aug 05, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 05, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect CallWindowProcA/W from NULL pointers.
parent
f9100240
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
winproc.c
windows/winproc.c
+10
-4
No files found.
windows/winproc.c
View file @
d9e79807
...
...
@@ -2867,9 +2867,12 @@ LRESULT WINAPI CallWindowProcA(
WPARAM
wParam
,
/* [in] message dependent parameter */
LPARAM
lParam
/* [in] message dependent parameter */
)
{
WINDOWPROC
*
proc
=
WINPROC_GetPtr
(
func
);
WINDOWPROC
*
proc
;
if
(
!
func
)
return
0
;
if
(
!
proc
)
return
WINPROC_CallWndProc
(
func
,
hwnd
,
msg
,
wParam
,
lParam
);
if
(
!
(
proc
=
WINPROC_GetPtr
(
func
)))
return
WINPROC_CallWndProc
(
func
,
hwnd
,
msg
,
wParam
,
lParam
);
#if testing
func
=
WINPROC_GetProc
(
(
WNDPROC
)
proc
,
WIN_PROC_32A
);
...
...
@@ -2903,9 +2906,12 @@ LRESULT WINAPI CallWindowProcA(
LRESULT
WINAPI
CallWindowProcW
(
WNDPROC
func
,
HWND
hwnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
WINDOWPROC
*
proc
=
WINPROC_GetPtr
(
func
)
;
WINDOWPROC
*
proc
;
if
(
!
proc
)
return
WINPROC_CallWndProc
(
func
,
hwnd
,
msg
,
wParam
,
lParam
);
if
(
!
func
)
return
0
;
if
(
!
(
proc
=
WINPROC_GetPtr
(
(
WNDPROC
)
func
)))
return
WINPROC_CallWndProc
(
func
,
hwnd
,
msg
,
wParam
,
lParam
);
#if testing
func
=
WINPROC_GetProc
(
(
WNDPROC
)
proc
,
WIN_PROC_32W
);
...
...
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