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
ada8b1ab
Commit
ada8b1ab
authored
Aug 11, 2019
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Aug 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: If there is a title given through STARTUPINFO, use it.
Signed-off-by:
Damjan Jovanovic
<
damjan.jov@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6ae919de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
wcmdmain.c
programs/cmd/wcmdmain.c
+6
-1
No files found.
programs/cmd/wcmdmain.c
View file @
ada8b1ab
...
...
@@ -2417,6 +2417,7 @@ int wmain (int argc, WCHAR *argvW[])
CMD_LIST
*
toExecute
=
NULL
;
/* Commands left to be executed */
OSVERSIONINFOW
osv
;
char
osver
[
50
];
STARTUPINFOW
startupInfo
;
if
(
!
GetEnvironmentVariableW
(
comspecW
,
comspec
,
ARRAY_SIZE
(
comspec
)))
{
...
...
@@ -2676,7 +2677,11 @@ int wmain (int argc, WCHAR *argvW[])
return
errorlevel
;
}
SetConsoleTitleW
(
WCMD_LoadMessage
(
WCMD_CONSTITLE
));
GetStartupInfoW
(
&
startupInfo
);
if
(
startupInfo
.
lpTitle
!=
NULL
)
SetConsoleTitleW
(
startupInfo
.
lpTitle
);
else
SetConsoleTitleW
(
WCMD_LoadMessage
(
WCMD_CONSTITLE
));
/* Note: cmd.exe /c dir does not get a new color, /k dir does */
if
(
opt_t
)
{
...
...
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