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
664d57d0
Commit
664d57d0
authored
Jan 27, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Do not use SHGetMalloc() internally.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a697aa21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
wineboot.c
programs/wineboot/wineboot.c
+2
-10
No files found.
programs/wineboot/wineboot.c
View file @
664d57d0
...
...
@@ -1267,7 +1267,6 @@ static BOOL ProcessStartupItems(void)
{
BOOL
ret
=
FALSE
;
HRESULT
hr
;
IMalloc
*
ppM
=
NULL
;
IShellFolder
*
psfDesktop
=
NULL
,
*
psfStartup
=
NULL
;
LPITEMIDLIST
pidlStartup
=
NULL
,
pidlItem
;
ULONG
NumPIDLs
;
...
...
@@ -1277,13 +1276,6 @@ static BOOL ProcessStartupItems(void)
WINE_TRACE
(
"Processing items in the StartUp folder.
\n
"
);
hr
=
SHGetMalloc
(
&
ppM
);
if
(
FAILED
(
hr
))
{
WINE_ERR
(
"Couldn't get IMalloc object.
\n
"
);
goto
done
;
}
hr
=
SHGetDesktopFolder
(
&
psfDesktop
);
if
(
FAILED
(
hr
))
{
...
...
@@ -1333,7 +1325,7 @@ static BOOL ProcessStartupItems(void)
}
}
IMalloc_Free
(
ppM
,
pidlItem
);
ILFree
(
pidlItem
);
}
/* Return success */
...
...
@@ -1342,7 +1334,7 @@ static BOOL ProcessStartupItems(void)
done
:
if
(
iEnumList
)
IEnumIDList_Release
(
iEnumList
);
if
(
psfStartup
)
IShellFolder_Release
(
psfStartup
);
if
(
pidlStartup
)
I
Malloc_Free
(
ppM
,
pidlStartup
);
if
(
pidlStartup
)
I
LFree
(
pidlStartup
);
return
ret
;
}
...
...
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