mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:57:27 +00:00
win32u: Prevent use after free (Coverity).
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
This commit is contained in:
parent
0458949263
commit
df90a32511
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue