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
e5fdf97c
Commit
e5fdf97c
authored
Jul 24, 2011
by
André Hentschel
Committed by
Alexandre Julliard
Jul 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevdm: Try using the new DOSBox command to remap Z to a free drive.
parent
03cc8eea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
winevdm.c
programs/winevdm/winevdm.c
+8
-7
No files found.
programs/winevdm/winevdm.c
View file @
e5fdf97c
...
...
@@ -161,12 +161,6 @@ static void start_dosbox( const char *appname, const char *args )
char
*
dosbox
=
find_dosbox
();
if
(
!
dosbox
)
return
;
if
(
tolower
(
appname
[
0
])
==
'z'
)
{
WINE_MESSAGE
(
"winevdm: Cannot start DOS application %s
\n
"
,
appname
);
WINE_MESSAGE
(
" because DOSBox doesn't support running from the Z: drive.
\n
"
);
ExitProcess
(
1
);
}
if
(
!
GetTempPathW
(
MAX_PATH
,
path
))
return
;
if
(
!
GetTempFileNameW
(
path
,
cfgW
,
0
,
config
))
return
;
if
(
!
GetCurrentDirectoryW
(
MAX_PATH
,
path
))
return
;
...
...
@@ -174,12 +168,19 @@ static void start_dosbox( const char *appname, const char *args )
if
(
file
==
INVALID_HANDLE_VALUE
)
return
;
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
"[autoexec]"
)
+
sizeof
(
"mount -z c"
)
+
sizeof
(
"config -securemode"
)
+
25
*
(
strlen
(
config_dir
)
+
sizeof
(
"mount c /dosdevices/c:"
))
+
4
*
strlenW
(
path
)
+
6
+
strlen
(
appname
)
+
strlen
(
args
)
+
20
);
p
=
buffer
;
p
+=
sprintf
(
p
,
"[autoexec]
\n
"
);
for
(
i
=
0
;
i
<
25
;
i
++
)
for
(
i
=
25
;
i
>=
0
;
i
--
)
if
(
!
(
drives
&
(
1
<<
i
)))
{
p
+=
sprintf
(
p
,
"mount -z %c
\n
"
,
'a'
+
i
);
break
;
}
for
(
i
=
0
;
i
<=
25
;
i
++
)
if
(
drives
&
(
1
<<
i
))
p
+=
sprintf
(
p
,
"mount %c %s/dosdevices/%c:
\n
"
,
'a'
+
i
,
config_dir
,
'a'
+
i
);
p
+=
sprintf
(
p
,
"%c:
\n
cd "
,
path
[
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