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
aa831198
Commit
aa831198
authored
Apr 28, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Apr 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Return FALSE on error when processing links and URLs.
parent
46594b8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+8
-8
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
aa831198
...
...
@@ -3216,14 +3216,14 @@ static BOOL Process_Link( LPCWSTR linkname, BOOL bWait )
if
(
!
linkname
[
0
]
)
{
WINE_ERR
(
"link name missing
\n
"
);
return
TRU
E
;
return
FALS
E
;
}
len
=
GetFullPathNameW
(
linkname
,
MAX_PATH
,
fullname
,
NULL
);
if
(
len
==
0
||
len
>
MAX_PATH
)
{
WINE_ERR
(
"couldn't get full path of link file
\n
"
);
return
TRU
E
;
return
FALS
E
;
}
r
=
CoCreateInstance
(
&
CLSID_ShellLink
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
@@ -3231,14 +3231,14 @@ static BOOL Process_Link( LPCWSTR linkname, BOOL bWait )
if
(
FAILED
(
r
)
)
{
WINE_ERR
(
"No IID_IShellLink
\n
"
);
return
TRU
E
;
return
FALS
E
;
}
r
=
IShellLinkW_QueryInterface
(
sl
,
&
IID_IPersistFile
,
(
LPVOID
*
)
&
pf
);
if
(
FAILED
(
r
)
)
{
WINE_ERR
(
"No IID_IPersistFile
\n
"
);
return
TRU
E
;
return
FALS
E
;
}
r
=
IPersistFile_Load
(
pf
,
fullname
,
STGM_READ
);
...
...
@@ -3277,14 +3277,14 @@ static BOOL Process_URL( LPCWSTR urlname, BOOL bWait )
if
(
!
urlname
[
0
]
)
{
WINE_ERR
(
"URL name missing
\n
"
);
return
TRU
E
;
return
FALS
E
;
}
len
=
GetFullPathNameW
(
urlname
,
MAX_PATH
,
fullname
,
NULL
);
if
(
len
==
0
||
len
>
MAX_PATH
)
{
WINE_ERR
(
"couldn't get full path of URL file
\n
"
);
return
TRU
E
;
return
FALS
E
;
}
r
=
CoCreateInstance
(
&
CLSID_InternetShortcut
,
NULL
,
CLSCTX_INPROC_SERVER
,
...
...
@@ -3292,14 +3292,14 @@ static BOOL Process_URL( LPCWSTR urlname, BOOL bWait )
if
(
FAILED
(
r
)
)
{
WINE_ERR
(
"No IID_IUniformResourceLocatorW
\n
"
);
return
TRU
E
;
return
FALS
E
;
}
r
=
url
->
lpVtbl
->
QueryInterface
(
url
,
&
IID_IPersistFile
,
(
LPVOID
*
)
&
pf
);
if
(
FAILED
(
r
)
)
{
WINE_ERR
(
"No IID_IPersistFile
\n
"
);
return
TRU
E
;
return
FALS
E
;
}
r
=
IPersistFile_Load
(
pf
,
fullname
,
STGM_READ
);
if
(
SUCCEEDED
(
r
)
)
...
...
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