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
d0db751e
Commit
d0db751e
authored
Mar 13, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Mar 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: Save initial working directory.
parent
9e041c6b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
wcmdmain.c
programs/cmd/wcmdmain.c
+8
-0
No files found.
programs/cmd/wcmdmain.c
View file @
d0db751e
...
...
@@ -60,6 +60,7 @@ static char *WCMD_expand_envvar(char *start);
int
main
(
int
argc
,
char
*
argv
[])
{
char
string
[
1024
];
char
envvar
[
4
];
char
*
cmd
=
NULL
;
DWORD
count
;
HANDLE
h
;
...
...
@@ -327,6 +328,13 @@ int main (int argc, char *argv[])
}
/* Save cwd into appropriate env var */
GetCurrentDirectory
(
1024
,
string
);
if
(
IsCharAlpha
(
string
[
0
])
&&
string
[
1
]
==
':'
)
{
sprintf
(
envvar
,
"=%c:"
,
string
[
0
]);
SetEnvironmentVariable
(
envvar
,
string
);
}
if
(
opt_k
)
{
WCMD_process_command
(
cmd
);
HeapFree
(
GetProcessHeap
(),
0
,
cmd
);
...
...
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