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
df90a325
Commit
df90a325
authored
Nov 02, 2022
by
Fabian Maurer
Committed by
Alexandre Julliard
Nov 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Prevent use after free (Coverity).
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
parent
04589492
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
message.c
dlls/win32u/message.c
+3
-1
No files found.
dlls/win32u/message.c
View file @
df90a325
...
...
@@ -1368,7 +1368,6 @@ static LRESULT call_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpar
call_hooks
(
WH_CALLWNDPROC
,
HC_ACTION
,
same_thread
,
(
LPARAM
)
&
cwp
,
sizeof
(
cwp
)
);
dispatch_win_proc_params
(
params
,
sizeof
(
*
params
)
+
size
);
if
(
params
!=
&
p
)
free
(
params
);
/* and finally the WH_CALLWNDPROCRET hook */
cwpret
.
lResult
=
result
;
...
...
@@ -1376,6 +1375,9 @@ static LRESULT call_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpar
cwpret
.
wParam
=
wparam
;
cwpret
.
message
=
msg
;
cwpret
.
hwnd
=
params
->
hwnd
;
if
(
params
!=
&
p
)
free
(
params
);
call_hooks
(
WH_CALLWNDPROCRET
,
HC_ACTION
,
same_thread
,
(
LPARAM
)
&
cwpret
,
sizeof
(
cwpret
)
);
return
result
;
}
...
...
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