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
c268c40f
Commit
c268c40f
authored
Aug 29, 2011
by
Jay Yang
Committed by
Alexandre Julliard
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Try ShellExecute if the parameter isn't a directory.
parent
70239648
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
Makefile.in
programs/explorer/Makefile.in
+1
-1
explorer.c
programs/explorer/explorer.c
+4
-0
No files found.
programs/explorer/Makefile.in
View file @
c268c40f
...
...
@@ -2,7 +2,7 @@ EXTRADEFS = -DWINE_NO_UNICODE_MACROS
MODULE
=
explorer.exe
APPMODE
=
-mwindows
-municode
IMPORTS
=
rpcrt4 user32 gdi32 advapi32
DELAYIMPORTS
=
comctl32 shell32 ole32
DELAYIMPORTS
=
comctl32 shell32 ole32
shlwapi
C_SRCS
=
\
appbar.c
\
...
...
programs/explorer/explorer.c
View file @
c268c40f
...
...
@@ -32,6 +32,7 @@
#include <windows.h>
#include <shobjidl.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <commoncontrols.h>
#include <commctrl.h>
...
...
@@ -755,6 +756,9 @@ int WINAPI wWinMain(HINSTANCE hinstance,
WINE_ERR
(
"Could not initialize COM
\n
"
);
ExitProcess
(
EXIT_FAILURE
);
}
if
(
parameters
.
root
[
0
]
&&
!
PathIsDirectoryW
(
parameters
.
root
))
if
(
ShellExecuteW
(
NULL
,
NULL
,
parameters
.
root
,
NULL
,
NULL
,
SW_SHOWDEFAULT
)
>
(
HINSTANCE
)
32
)
ExitProcess
(
EXIT_SUCCESS
);
init_info
.
dwSize
=
sizeof
(
INITCOMMONCONTROLSEX
);
init_info
.
dwICC
=
ICC_USEREX_CLASSES
|
ICC_BAR_CLASSES
|
ICC_COOL_CLASSES
;
if
(
!
InitCommonControlsEx
(
&
init_info
))
...
...
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