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
290a419f
Commit
290a419f
authored
Jun 09, 2005
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jun 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't try to access floppy if it's not mounted.
parent
d4c08fdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drive.c
dlls/kernel/tests/drive.c
+4
-2
No files found.
dlls/kernel/tests/drive.c
View file @
290a419f
...
@@ -102,10 +102,11 @@ static void test_GetDiskFreeSpaceA(void)
...
@@ -102,10 +102,11 @@ static void test_GetDiskFreeSpaceA(void)
for
(
drive
[
0
]
=
'A'
;
drive
[
0
]
<=
'Z'
;
drive
[
0
]
++
)
for
(
drive
[
0
]
=
'A'
;
drive
[
0
]
<=
'Z'
;
drive
[
0
]
++
)
{
{
UINT
drivetype
=
GetDriveTypeA
(
drive
);
/* Skip floppy drives because NT pops up a MessageBox if no
/* Skip floppy drives because NT pops up a MessageBox if no
* floppy is present
* floppy is present
*/
*/
if
(
GetDriveTypeA
(
drive
)
!=
DRIVE_REMOVABLE
)
if
(
drivetype
!=
DRIVE_REMOVABLE
&&
drivetype
!=
DRIVE_NO_ROOT_DIR
)
{
{
ret
=
GetDiskFreeSpaceA
(
drive
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ret
=
GetDiskFreeSpaceA
(
drive
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
if
(
!
(
logical_drives
&
1
))
if
(
!
(
logical_drives
&
1
))
...
@@ -156,8 +157,9 @@ static void test_GetDiskFreeSpaceW(void)
...
@@ -156,8 +157,9 @@ static void test_GetDiskFreeSpaceW(void)
for
(
drive
[
0
]
=
'A'
;
drive
[
0
]
<=
'Z'
;
drive
[
0
]
++
)
for
(
drive
[
0
]
=
'A'
;
drive
[
0
]
<=
'Z'
;
drive
[
0
]
++
)
{
{
UINT
drivetype
=
GetDriveTypeW
(
drive
);
/* Skip floppy drives because NT4 pops up a MessageBox if no floppy is present */
/* Skip floppy drives because NT4 pops up a MessageBox if no floppy is present */
if
(
GetDriveTypeW
(
drive
)
!=
DRIVE_REMOVABLE
)
if
(
drivetype
!=
DRIVE_REMOVABLE
&&
drivetype
!=
DRIVE_NO_ROOT_DIR
)
{
{
ret
=
GetDiskFreeSpaceW
(
drive
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ret
=
GetDiskFreeSpaceW
(
drive
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
if
(
!
(
logical_drives
&
1
))
if
(
!
(
logical_drives
&
1
))
...
...
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