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
689ff9c0
Commit
689ff9c0
authored
Oct 02, 2020
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Oct 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevdm: Abstract references to /dosbox.
Signed-off-by:
Gerald Pfeifer
<
gerald@pfeifer.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2278485d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
winevdm.c
programs/winevdm/winevdm.c
+3
-2
No files found.
programs/winevdm/winevdm.c
View file @
689ff9c0
...
...
@@ -35,6 +35,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winevdm
);
#define DOSBOX "dosbox"
/*** PIF file structures ***/
#include "pshpack1.h"
...
...
@@ -118,7 +119,7 @@ static char *find_dosbox(void)
envpath_len
=
strlen
(
envpath
);
path
=
HeapAlloc
(
GetProcessHeap
(),
0
,
envpath_len
+
1
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
envpath_len
+
s
izeof
(
"/dosbox"
)
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
envpath_len
+
s
trlen
(
DOSBOX
)
+
2
);
strcpy
(
path
,
envpath
);
p
=
path
;
...
...
@@ -130,7 +131,7 @@ static char *find_dosbox(void)
while
(
*
p
&&
*
p
!=
':'
)
p
++
;
if
(
*
p
==
':'
)
*
p
++
=
0
;
strcpy
(
buffer
,
dir
);
strcat
(
buffer
,
"/
dosbox"
);
strcat
(
buffer
,
"/
"
DOSBOX
);
if
(
!
stat
(
buffer
,
&
st
))
{
HeapFree
(
GetProcessHeap
(),
0
,
path
);
...
...
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