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
4d958a1c
Commit
4d958a1c
authored
Oct 06, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Preserve the 2K block size returned for CDROMs.
parent
a1131786
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
file.c
dlls/ntdll/file.c
+10
-2
No files found.
dlls/ntdll/file.c
View file @
4d958a1c
...
...
@@ -2264,10 +2264,18 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile( HANDLE handle, PIO_STATUS_BLOCK io
}
bsize
=
stfs
.
f_bsize
;
#endif
if
(
bsize
==
2048
)
/* assume CD-ROM */
{
info
->
BytesPerSector
=
2048
;
info
->
SectorsPerAllocationUnit
=
1
;
}
else
{
info
->
BytesPerSector
=
512
;
info
->
SectorsPerAllocationUnit
=
8
;
info
->
TotalAllocationUnits
.
QuadPart
=
bsize
*
stfs
.
f_blocks
/
(
512
*
8
);
info
->
AvailableAllocationUnits
.
QuadPart
=
bsize
*
stfs
.
f_bavail
/
(
512
*
8
);
}
info
->
TotalAllocationUnits
.
QuadPart
=
bsize
*
stfs
.
f_blocks
/
(
info
->
BytesPerSector
*
info
->
SectorsPerAllocationUnit
);
info
->
AvailableAllocationUnits
.
QuadPart
=
bsize
*
stfs
.
f_bavail
/
(
info
->
BytesPerSector
*
info
->
SectorsPerAllocationUnit
);
io
->
Information
=
sizeof
(
*
info
);
io
->
u
.
Status
=
STATUS_SUCCESS
;
}
...
...
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