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
310dc626
Commit
310dc626
authored
Jul 02, 2010
by
Paul Chitescu
Committed by
Alexandre Julliard
Jul 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Strip out initial whitespaces and quotes around an URL on iexplore command line.
parent
6018b889
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
iexplore.c
dlls/shdocvw/iexplore.c
+10
-2
No files found.
dlls/shdocvw/iexplore.c
View file @
310dc626
...
...
@@ -142,15 +142,23 @@ static IWebBrowser2 *create_ie_window(LPCSTR cmdline)
}
else
{
VARIANT
var_url
;
DWORD
len
;
int
cmdlen
;
if
(
!
strncasecmp
(
cmdline
,
"-nohome"
,
7
))
cmdline
+=
7
;
while
(
*
cmdline
==
' '
||
*
cmdline
==
'\t'
)
cmdline
++
;
cmdlen
=
lstrlenA
(
cmdline
);
if
(
cmdlen
>
2
&&
cmdline
[
0
]
==
'"'
&&
cmdline
[
cmdlen
-
1
]
==
'"'
)
{
cmdline
++
;
cmdlen
-=
2
;
}
V_VT
(
&
var_url
)
=
VT_BSTR
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
cmdline
,
-
1
,
NULL
,
0
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
cmdline
,
cmdlen
,
NULL
,
0
);
V_BSTR
(
&
var_url
)
=
SysAllocStringLen
(
NULL
,
len
);
MultiByteToWideChar
(
CP_ACP
,
0
,
cmdline
,
-
1
,
V_BSTR
(
&
var_url
),
len
);
MultiByteToWideChar
(
CP_ACP
,
0
,
cmdline
,
cmdlen
,
V_BSTR
(
&
var_url
),
len
);
/* navigate to the first page */
IWebBrowser2_Navigate2
(
wb
,
&
var_url
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
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