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
7439c29d
Commit
7439c29d
authored
Jan 14, 2006
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Handle /select arguments correctly with the new winefile
modifications.
parent
d44364d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
+37
-2
explorer.c
programs/explorer/explorer.c
+37
-2
No files found.
programs/explorer/explorer.c
View file @
7439c29d
/*
/*
* explorer.exe
* explorer.exe
*
*
* Copyright 2005 CodeWeavers, Aric Stewart
* Copyright 2005
,2006
CodeWeavers, Aric Stewart
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -148,14 +148,49 @@ int WINAPI WinMain(HINSTANCE hinstance,
...
@@ -148,14 +148,49 @@ int WINAPI WinMain(HINSTANCE hinstance,
parameters_struct
parameters
;
parameters_struct
parameters
;
BOOL
rc
;
BOOL
rc
;
static
WCHAR
winefile
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
static
WCHAR
winefile
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
static
WCHAR
space
[]
=
{
' '
,
0
};
LPWSTR
winefile_commandline
=
NULL
;
DWORD
len
=
0
;
memset
(
&
parameters
,
0
,
sizeof
(
parameters
));
memset
(
&
parameters
,
0
,
sizeof
(
parameters
));
memset
(
&
si
,
0
,
sizeof
(
STARTUPINFOW
));
memset
(
&
si
,
0
,
sizeof
(
STARTUPINFOW
));
ParseCommandLine
(
cmdline
,
&
parameters
);
ParseCommandLine
(
cmdline
,
&
parameters
);
len
=
lstrlenW
(
winefile
)
+
1
;
if
(
parameters
.
selection
[
0
])
{
len
+=
lstrlenW
(
parameters
.
selection
)
+
2
;
winefile_commandline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
rc
=
CreateProcessW
(
NULL
,
winefile
,
NULL
,
NULL
,
FALSE
,
0
,
NULL
,
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
]
!=
'\\'
)
{
static
const
WCHAR
slash
[]
=
{
'\\'
,
0
};
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
);
parameters
.
root
,
&
si
,
&
info
);
HeapFree
(
GetProcessHeap
(),
0
,
winefile_commandline
);
if
(
!
rc
)
if
(
!
rc
)
return
0
;
return
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