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
50275015
Commit
50275015
authored
Mar 18, 2007
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Mar 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Don't free user supplied data in Shell_NotifyIcon if GetIconInfo failed.
We should free the nid and in such a case we were doing it.
parent
cdf06864
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
systray.c
dlls/shell32/systray.c
+2
-3
No files found.
dlls/shell32/systray.c
View file @
50275015
...
...
@@ -89,6 +89,7 @@ BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW nid)
{
HWND
tray
;
COPYDATASTRUCT
cds
;
char
*
buffer
=
NULL
;
TRACE
(
"dwMessage = %d, nid->cbSize=%d
\n
"
,
dwMessage
,
nid
->
cbSize
);
...
...
@@ -102,7 +103,6 @@ BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW nid)
if
(
nid
->
uFlags
&
NIF_ICON
)
{
ICONINFO
iconinfo
;
char
*
buffer
;
BITMAP
bmMask
;
BITMAP
bmColour
;
LONG
cbMaskBits
;
...
...
@@ -156,8 +156,7 @@ noicon:
/* FIXME: if statement only needed because we don't support interprocess
* icon handles */
if
(
nid
->
uFlags
&
NIF_ICON
)
HeapFree
(
GetProcessHeap
(),
0
,
cds
.
lpData
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
return
TRUE
;
}
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