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
9d4bf491
Commit
9d4bf491
authored
May 09, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Remove some redundant NULL pointer checks.
parent
0b7dcd24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
24 deletions
+8
-24
winproc.c
dlls/user/winproc.c
+8
-24
No files found.
dlls/user/winproc.c
View file @
9d4bf491
...
...
@@ -3248,14 +3248,10 @@ LRESULT WINAPI CallWindowProc16( WNDPROC16 func, HWND16 hwnd, UINT16 msg,
switch
(
proc
->
type
)
{
case
WIN_PROC_16
:
if
(
!
proc
->
thunk
.
t_from32
.
proc
)
return
0
;
return
WINPROC_CallWndProc16
(
proc
->
thunk
.
t_from32
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
return
WINPROC_CallWndProc16
(
proc
->
thunk
.
t_from32
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
case
WIN_PROC_32A
:
if
(
!
proc
->
thunk
.
t_from16
.
proc
)
return
0
;
return
__wine_call_wndproc_32A
(
hwnd
,
msg
,
wParam
,
lParam
,
proc
->
thunk
.
t_from16
.
proc
);
case
WIN_PROC_32W
:
if
(
!
proc
->
thunk
.
t_from16
.
proc
)
return
0
;
return
__wine_call_wndproc_32W
(
hwnd
,
msg
,
wParam
,
lParam
,
proc
->
thunk
.
t_from16
.
proc
);
default:
WARN_
(
relay
)(
"Invalid proc %p
\n
"
,
proc
);
...
...
@@ -3305,17 +3301,11 @@ LRESULT WINAPI CallWindowProcA(
switch
(
proc
->
type
)
{
case
WIN_PROC_16
:
if
(
!
proc
->
thunk
.
t_from32
.
proc
)
return
0
;
return
WINPROC_CallProc32ATo16
(
proc
->
thunk
.
t_from32
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
return
WINPROC_CallProc32ATo16
(
proc
->
thunk
.
t_from32
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
case
WIN_PROC_32A
:
if
(
!
proc
->
thunk
.
t_from16
.
proc
)
return
0
;
return
WINPROC_CallWndProc
(
proc
->
thunk
.
t_from16
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
return
WINPROC_CallWndProc
(
proc
->
thunk
.
t_from16
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
case
WIN_PROC_32W
:
if
(
!
proc
->
thunk
.
t_from16
.
proc
)
return
0
;
return
WINPROC_CallProc32ATo32W
(
proc
->
thunk
.
t_from16
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
return
WINPROC_CallProc32ATo32W
(
proc
->
thunk
.
t_from16
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
default:
WARN_
(
relay
)(
"Invalid proc %p
\n
"
,
proc
);
return
0
;
...
...
@@ -3335,23 +3325,17 @@ LRESULT WINAPI CallWindowProcW( WNDPROC func, HWND hwnd, UINT msg,
if
(
!
func
)
return
0
;
if
(
!
(
proc
=
WINPROC_GetPtr
(
(
WNDPROC
)
func
)))
if
(
!
(
proc
=
WINPROC_GetPtr
(
func
)))
return
WINPROC_CallWndProc
(
func
,
hwnd
,
msg
,
wParam
,
lParam
);
switch
(
proc
->
type
)
{
case
WIN_PROC_16
:
if
(
!
proc
->
thunk
.
t_from32
.
proc
)
return
0
;
return
WINPROC_CallProc32WTo16
(
proc
->
thunk
.
t_from32
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
return
WINPROC_CallProc32WTo16
(
proc
->
thunk
.
t_from32
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
case
WIN_PROC_32A
:
if
(
!
proc
->
thunk
.
t_from16
.
proc
)
return
0
;
return
WINPROC_CallProc32WTo32A
(
proc
->
thunk
.
t_from16
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
return
WINPROC_CallProc32WTo32A
(
proc
->
thunk
.
t_from16
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
case
WIN_PROC_32W
:
if
(
!
proc
->
thunk
.
t_from16
.
proc
)
return
0
;
return
WINPROC_CallWndProc
(
proc
->
thunk
.
t_from16
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
return
WINPROC_CallWndProc
(
proc
->
thunk
.
t_from16
.
proc
,
hwnd
,
msg
,
wParam
,
lParam
);
default:
WARN_
(
relay
)(
"Invalid proc %p
\n
"
,
proc
);
return
0
;
...
...
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