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
df66b90f
Commit
df66b90f
authored
Nov 28, 1999
by
Dave Pickles
Committed by
Alexandre Julliard
Nov 28, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent a crash if messages are sent to a toolbar window before
WM_NCCREATE or after WM_DESTROY.
parent
ae8d1d17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
toolbar.c
dlls/comctl32/toolbar.c
+16
-6
No files found.
dlls/comctl32/toolbar.c
View file @
df66b90f
...
...
@@ -2943,6 +2943,7 @@ TOOLBAR_Destroy (HWND hwnd, WPARAM wParam, LPARAM lParam)
/* free toolbar info data */
COMCTL32_Free
(
infoPtr
);
SetWindowLongA
(
hwnd
,
0
,
0
);
return
0
;
}
...
...
@@ -3411,6 +3412,21 @@ TOOLBAR_StyleChanged (HWND hwnd, INT nType, LPSTYLESTRUCT lpStyle)
static
LRESULT
WINAPI
ToolbarWindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
switch
(
uMsg
)
{
case
WM_DESTROY
:
return
TOOLBAR_Destroy
(
hwnd
,
wParam
,
lParam
);
case
WM_NCCREATE
:
return
TOOLBAR_NCCreate
(
hwnd
,
wParam
,
lParam
);
}
if
(
!
TOOLBAR_GetInfoPtr
(
hwnd
))
{
return
DefWindowProcA
(
hwnd
,
uMsg
,
wParam
,
lParam
);
}
switch
(
uMsg
)
{
case
TB_ADDBITMAP
:
...
...
@@ -3671,9 +3687,6 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_CREATE
:
return
TOOLBAR_Create
(
hwnd
,
wParam
,
lParam
);
case
WM_DESTROY
:
return
TOOLBAR_Destroy
(
hwnd
,
wParam
,
lParam
);
case
WM_ERASEBKGND
:
return
TOOLBAR_EraseBackground
(
hwnd
,
wParam
,
lParam
);
...
...
@@ -3701,9 +3714,6 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
WM_NCCALCSIZE
:
return
TOOLBAR_NCCalcSize
(
hwnd
,
wParam
,
lParam
);
case
WM_NCCREATE
:
return
TOOLBAR_NCCreate
(
hwnd
,
wParam
,
lParam
);
case
WM_NCPAINT
:
return
TOOLBAR_NCPaint
(
hwnd
,
wParam
,
lParam
);
...
...
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