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
5e161ac7
Commit
5e161ac7
authored
Feb 14, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Feb 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed automatic drive detection for the case that the root directory
is not already mapped.
parent
b33ef441
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
drivedetect.c
programs/winecfg/drivedetect.c
+6
-3
winecfg.h
programs/winecfg/winecfg.h
+1
-1
No files found.
programs/winecfg/drivedetect.c
View file @
5e161ac7
...
...
@@ -151,9 +151,12 @@ static void ensure_root_is_mapped()
for
(
letter
=
'Z'
;
letter
>=
'A'
;
letter
--
)
{
if
(
drives
[
letter
-
'A'
].
in_use
)
continue
;
add_drive
(
letter
,
"/"
,
"System"
,
0
,
DRIVE_FIXED
);
WINE_TRACE
(
"allocated drive %c as the root drive
\n
"
,
letter
);
if
(
!
drives
[
letter
-
'A'
].
in_use
)
{
add_drive
(
letter
,
"/"
,
"System"
,
"0"
,
DRIVE_FIXED
);
WINE_TRACE
(
"allocated drive %c as the root drive
\n
"
,
letter
);
break
;
}
}
if
(
letter
==
(
'A'
-
1
))
report_error
(
NO_ROOT
);
...
...
programs/winecfg/winecfg.h
View file @
5e161ac7
...
...
@@ -108,7 +108,7 @@ void PRINTERROR(void); /* WINE_TRACE() the plaintext error message from GetLastE
/* returns a string in the win32 heap */
static
inline
char
*
strdupA
(
char
*
s
)
{
char
*
r
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
s
));
char
*
r
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
s
)
+
1
);
return
strcpy
(
r
,
s
);
}
...
...
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