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
8e13333c
Commit
8e13333c
authored
Aug 18, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Specify an explicit path when launching winefile.
parent
19d275f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
explorer.c
programs/explorer/explorer.c
+9
-15
No files found.
programs/explorer/explorer.c
View file @
8e13333c
...
...
@@ -157,7 +157,7 @@ int WINAPI WinMain(HINSTANCE hinstance,
PROCESS_INFORMATION
info
;
parameters_struct
parameters
;
BOOL
rc
;
static
const
WCHAR
winefile
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
static
const
WCHAR
winefile
[]
=
{
'
\\'
,
'
w'
,
'i'
,
'n'
,
'e'
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
static
const
WCHAR
space
[]
=
{
' '
,
0
};
LPWSTR
winefile_commandline
=
NULL
;
DWORD
len
=
0
;
...
...
@@ -166,23 +166,22 @@ int WINAPI WinMain(HINSTANCE hinstance,
memset
(
&
si
,
0
,
sizeof
(
STARTUPINFOW
));
ParseCommandLine
(
cmdline
,
&
parameters
);
len
=
lstrlenW
(
winefile
)
+
1
;
len
=
GetSystemDirectoryW
(
NULL
,
0
)
+
sizeof
(
winefile
)
/
sizeof
(
WCHAR
);
if
(
parameters
.
selection
[
0
])
len
+=
lstrlenW
(
parameters
.
selection
)
+
2
;
else
if
(
parameters
.
root
[
0
])
len
+=
lstrlenW
(
parameters
.
root
)
+
3
;
winefile_commandline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
GetSystemDirectoryW
(
winefile_commandline
,
len
);
lstrcatW
(
winefile_commandline
,
winefile
);
if
(
parameters
.
selection
[
0
])
{
len
+=
lstrlenW
(
parameters
.
selection
)
+
2
;
winefile_commandline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
lstrcpyW
(
winefile_commandline
,
winefile
);
lstrcatW
(
winefile_commandline
,
space
);
lstrcatW
(
winefile_commandline
,
parameters
.
selection
);
}
else
if
(
parameters
.
root
[
0
])
{
len
+=
lstrlenW
(
parameters
.
root
)
+
3
;
winefile_commandline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
lstrcpyW
(
winefile_commandline
,
winefile
);
lstrcatW
(
winefile_commandline
,
space
);
lstrcatW
(
winefile_commandline
,
parameters
.
root
);
if
(
winefile_commandline
[
lstrlenW
(
winefile_commandline
)
-
1
]
!=
'\\'
)
...
...
@@ -191,11 +190,6 @@ int WINAPI WinMain(HINSTANCE hinstance,
lstrcatW
(
winefile_commandline
,
slash
);
}
}
else
{
winefile_commandline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
lstrcpyW
(
winefile_commandline
,
winefile
);
}
rc
=
CreateProcessW
(
NULL
,
winefile_commandline
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
parameters
.
root
,
&
si
,
&
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