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
781fcd46
Commit
781fcd46
authored
Oct 27, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Specify the full application path when starting winefile.exe.
parent
5950c6af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
explorer.c
programs/explorer/explorer.c
+5
-3
No files found.
programs/explorer/explorer.c
View file @
781fcd46
...
...
@@ -151,6 +151,7 @@ int WINAPI wWinMain(HINSTANCE hinstance,
BOOL
rc
;
static
const
WCHAR
winefile
[]
=
{
'\\'
,
'w'
,
'i'
,
'n'
,
'e'
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
static
const
WCHAR
space
[]
=
{
' '
,
0
};
WCHAR
app
[
MAX_PATH
];
LPWSTR
winefile_commandline
=
NULL
;
DWORD
len
=
0
;
...
...
@@ -164,8 +165,9 @@ int WINAPI wWinMain(HINSTANCE hinstance,
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
);
GetSystemDirectoryW
(
app
,
MAX_PATH
-
sizeof
(
winefile
)
/
sizeof
(
WCHAR
)
);
strcatW
(
app
,
winefile
);
strcpyW
(
winefile_commandline
,
app
);
if
(
parameters
.
selection
[
0
])
{
...
...
@@ -183,7 +185,7 @@ int WINAPI wWinMain(HINSTANCE hinstance,
}
}
rc
=
CreateProcessW
(
NULL
,
winefile_commandline
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
rc
=
CreateProcessW
(
app
,
winefile_commandline
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
parameters
.
root
[
0
]
?
parameters
.
root
:
NULL
,
&
si
,
&
info
);
HeapFree
(
GetProcessHeap
(),
0
,
winefile_commandline
);
...
...
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