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
0dce5b75
Commit
0dce5b75
authored
Oct 11, 1998
by
Petter Reinholdtsen
Committed by
Alexandre Julliard
Oct 11, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: Changed GetDriveType32A(NULL) to use cwd's root.
parent
b05264fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
drive.c
files/drive.c
+18
-15
No files found.
files/drive.c
View file @
0dce5b75
...
...
@@ -785,30 +785,33 @@ UINT16 WINAPI GetDriveType16(
* DRIVE_CDROM CDROM drive
* DRIVE_RAMDISK virtual disk in ram
*
* DRIVE_DOESNOTEXIST XXX Not valid return value
* DRIVE_DOESNOTEXIST XXX Not valid return value
* DRIVE_CANNOTDETERMINE XXX Not valid return value
*
* BUGS
*
* Currently returns DRIVE_DOESNOTEXIST when it really should return
* DRIVE_UNKNOWN or DRIVE_NO_ROOT_DIR. DRIVE_RAMDISK is unsupported.
* Should determine current directory and use that root if param is
* NULL.
* Currently returns DRIVE_DOESNOTEXIST and DRIVE_CANNOTDETERMINE
* when it really should return DRIVE_NO_ROOT_DIR and DRIVE_UNKNOWN.
* Why where the former defines used?
*
* DRIVE_RAMDISK is unsupported.
*/
UINT32
WINAPI
GetDriveType32A
(
LPCSTR
root
/* String describing drive */
)
{
TRACE
(
dosfs
,
"(%s)
\n
"
,
NULL
!=
root
?
root
:
"NULL"
);
if
(
NULL
==
root
)
{
FIXME
(
dosfs
,
"(NULL) should use current dir, hardcoded c: instead
\n
"
);
root
=
"C:"
;
}
int
drive
;
TRACE
(
dosfs
,
"(%s)
\n
"
,
debugstr_a
(
root
));
if
((
root
[
1
])
&&
(
root
[
1
]
!=
':'
))
if
(
NULL
==
root
)
drive
=
DRIVE_GetCurrentDrive
();
else
{
WARN
(
dosfs
,
"invalid root '%s'
\n
"
,
NULL
!=
root
?
root
:
"NULL"
);
return
DRIVE_DOESNOTEXIST
;
if
((
root
[
1
])
&&
(
root
[
1
]
!=
':'
))
{
WARN
(
dosfs
,
"invalid root '%s'
\n
"
,
debugstr_a
(
root
));
return
DRIVE_DOESNOTEXIST
;
}
drive
=
toupper
(
root
[
0
])
-
'A'
;
}
switch
(
DRIVE_GetType
(
toupper
(
root
[
0
])
-
'A'
))
switch
(
DRIVE_GetType
(
drive
))
{
case
TYPE_FLOPPY
:
return
DRIVE_REMOVABLE
;
case
TYPE_HD
:
return
DRIVE_FIXED
;
...
...
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