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
735bf5a6
Commit
735bf5a6
authored
Sep 09, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Better iexplore.exe command line handling.
parent
72060f04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
25 deletions
+21
-25
iexplore.c
dlls/shdocvw/iexplore.c
+21
-25
No files found.
dlls/shdocvw/iexplore.c
View file @
735bf5a6
...
...
@@ -120,10 +120,9 @@ static void create_frame_hwnd(InternetExplorer *This)
NULL
,
NULL
/* FIXME */
,
shdocvw_hinstance
,
This
);
}
static
IWebBrowser2
*
create_ie_window
(
LPC
WSTR
url
)
static
IWebBrowser2
*
create_ie_window
(
LPC
STR
cmdline
)
{
IWebBrowser2
*
wb
=
NULL
;
VARIANT
var_url
;
InternetExplorer_Create
(
NULL
,
&
IID_IWebBrowser2
,
(
void
**
)
&
wb
);
if
(
!
wb
)
...
...
@@ -131,13 +130,26 @@ static IWebBrowser2 *create_ie_window(LPCWSTR url)
IWebBrowser2_put_Visible
(
wb
,
VARIANT_TRUE
);
V_VT
(
&
var_url
)
=
VT_BSTR
;
V_BSTR
(
&
var_url
)
=
SysAllocString
(
url
);
if
(
!*
cmdline
)
{
IWebBrowser2_GoHome
(
wb
);
}
else
{
VARIANT
var_url
;
DWORD
len
;
if
(
!
strncasecmp
(
cmdline
,
"-nohome"
,
7
))
cmdline
+=
7
;
V_VT
(
&
var_url
)
=
VT_BSTR
;
/* navigate to the first page */
IWebBrowser2_Navigate2
(
wb
,
&
var_url
,
NULL
,
NULL
,
NULL
,
NULL
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
cmdline
,
-
1
,
NULL
,
0
);
V_BSTR
(
&
var_url
)
=
SysAllocStringLen
(
NULL
,
len
);
MultiByteToWideChar
(
CP_ACP
,
0
,
cmdline
,
-
1
,
V_BSTR
(
&
var_url
),
len
);
SysFreeString
(
V_BSTR
(
&
var_url
));
/* navigate to the first page */
IWebBrowser2_Navigate2
(
wb
,
&
var_url
,
NULL
,
NULL
,
NULL
,
NULL
);
SysFreeString
(
V_BSTR
(
&
var_url
));
}
return
wb
;
}
...
...
@@ -190,24 +202,8 @@ DWORD WINAPI IEWinMain(LPSTR szCommandLine, int nShowWindow)
ExitProcess
(
1
);
}
/* FIXME: there are lots of other commandline options we need to parse */
if
(
!
strncasecmp
(
szCommandLine
,
"-nohome"
,
7
))
{
FIXME
(
"skipping -nohome option
\n
"
);
szCommandLine
+=
8
;
}
if
(
strcmp
(
szCommandLine
,
"-Embedding"
))
{
LPWSTR
url
;
DWORD
len
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
szCommandLine
,
-
1
,
NULL
,
0
);
url
=
shdocvw_alloc
(
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
szCommandLine
,
-
1
,
url
,
len
);
wb
=
create_ie_window
(
url
);
shdocvw_free
(
url
);
}
if
(
strcasecmp
(
szCommandLine
,
"-embedding"
))
wb
=
create_ie_window
(
szCommandLine
);
/* run the message loop for this thread */
while
(
GetMessageW
(
&
msg
,
0
,
0
,
0
))
...
...
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