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
9f47704f
Commit
9f47704f
authored
Aug 23, 2022
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Handle S_FALSE return values from IUri methods.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
b75ed039
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
main.c
dlls/mshtml/main.c
+4
-2
persist.c
dlls/mshtml/persist.c
+2
-1
script.c
dlls/mshtml/script.c
+1
-1
No files found.
dlls/mshtml/main.c
View file @
9f47704f
...
@@ -215,7 +215,7 @@ compat_mode_t get_max_compat_mode(IUri *uri)
...
@@ -215,7 +215,7 @@ compat_mode_t get_max_compat_mode(IUri *uri)
{
{
compat_config_t
*
iter
;
compat_config_t
*
iter
;
size_t
len
,
iter_len
;
size_t
len
,
iter_len
;
BSTR
host
;
BSTR
host
=
NULL
;
HRESULT
hres
;
HRESULT
hres
;
static
INIT_ONCE
init_once
=
INIT_ONCE_STATIC_INIT
;
static
INIT_ONCE
init_once
=
INIT_ONCE_STATIC_INIT
;
...
@@ -224,8 +224,10 @@ compat_mode_t get_max_compat_mode(IUri *uri)
...
@@ -224,8 +224,10 @@ compat_mode_t get_max_compat_mode(IUri *uri)
if
(
!
uri
)
if
(
!
uri
)
return
global_max_compat_mode
;
return
global_max_compat_mode
;
hres
=
IUri_GetHost
(
uri
,
&
host
);
hres
=
IUri_GetHost
(
uri
,
&
host
);
if
(
FAILED
(
hres
))
if
(
hres
!=
S_OK
)
{
SysFreeString
(
host
);
return
global_max_compat_mode
;
return
global_max_compat_mode
;
}
len
=
SysStringLen
(
host
);
len
=
SysStringLen
(
host
);
LIST_FOR_EACH_ENTRY
(
iter
,
&
compat_config
,
compat_config_t
,
entry
)
{
LIST_FOR_EACH_ENTRY
(
iter
,
&
compat_config
,
compat_config_t
,
entry
)
{
...
...
dlls/mshtml/persist.c
View file @
9f47704f
...
@@ -1176,7 +1176,8 @@ static HRESULT WINAPI HlinkTarget_Navigate(IHlinkTarget *iface, DWORD grfHLNF, L
...
@@ -1176,7 +1176,8 @@ static HRESULT WINAPI HlinkTarget_Navigate(IHlinkTarget *iface, DWORD grfHLNF, L
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
return
hres
;
return
hres
;
ShellExecuteW
(
NULL
,
L"open"
,
uri
,
NULL
,
NULL
,
SW_SHOW
);
if
(
hres
==
S_OK
)
ShellExecuteW
(
NULL
,
L"open"
,
uri
,
NULL
,
NULL
,
SW_SHOW
);
SysFreeString
(
uri
);
SysFreeString
(
uri
);
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/mshtml/script.c
View file @
9f47704f
...
@@ -1123,7 +1123,7 @@ HRESULT load_script(HTMLScriptElement *script_elem, const WCHAR *src, BOOL async
...
@@ -1123,7 +1123,7 @@ HRESULT load_script(HTMLScriptElement *script_elem, const WCHAR *src, BOOL async
hres
=
IUri_GetScheme
(
uri
,
&
bsc
->
scheme
);
hres
=
IUri_GetScheme
(
uri
,
&
bsc
->
scheme
);
IUri_Release
(
uri
);
IUri_Release
(
uri
);
if
(
FAILED
(
hres
)
)
if
(
hres
!=
S_OK
)
bsc
->
scheme
=
URL_SCHEME_UNKNOWN
;
bsc
->
scheme
=
URL_SCHEME_UNKNOWN
;
IHTMLScriptElement_AddRef
(
&
script_elem
->
IHTMLScriptElement_iface
);
IHTMLScriptElement_AddRef
(
&
script_elem
->
IHTMLScriptElement_iface
);
...
...
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