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
a1aeeb2b
Commit
a1aeeb2b
authored
Dec 11, 2001
by
Dave Hawkes
Committed by
Alexandre Julliard
Dec 11, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for toolbar potentially using a NULL pointer.
parent
5797fbb8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
toolbar.c
dlls/comctl32/toolbar.c
+6
-1
No files found.
dlls/comctl32/toolbar.c
View file @
a1aeeb2b
...
...
@@ -205,6 +205,9 @@ TOOLBAR_CheckStyle (HWND hwnd, DWORD dwStyle)
static
INT
TOOLBAR_SendNotify
(
NMHDR
*
nmhdr
,
TOOLBAR_INFO
*
infoPtr
,
UINT
code
)
{
if
(
!
IsWindow
(
infoPtr
->
hwndSelf
))
return
0
;
/* we have just been destroyed */
nmhdr
->
idFrom
=
GetDlgCtrlID
(
infoPtr
->
hwndSelf
);
nmhdr
->
hwndFrom
=
infoPtr
->
hwndSelf
;
nmhdr
->
code
=
code
;
...
...
@@ -1415,7 +1418,7 @@ TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
PCUSTDLG_INFO
custInfo
=
(
PCUSTDLG_INFO
)
GetWindowLongA
(
hwnd
,
DWL_USER
);
PCUSTOMBUTTON
btnInfo
;
NMTOOLBARA
nmtb
;
TOOLBAR_INFO
*
infoPtr
=
custInfo
->
tbInfo
;
TOOLBAR_INFO
*
infoPtr
=
custInfo
?
custInfo
->
tbInfo
:
NULL
;
switch
(
uMsg
)
{
...
...
@@ -1429,6 +1432,8 @@ TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
int
i
=
0
;
int
index
;
infoPtr
=
custInfo
->
tbInfo
;
/* send TBN_QUERYINSERT notification */
nmtb
.
iItem
=
custInfo
->
tbInfo
->
nNumButtons
;
...
...
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