mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 17:30:32 +00:00
- Call ChkDsk function with NT pathname, not DOS pathname.
svn path=/trunk/; revision=35105
This commit is contained in:
parent
799a04653b
commit
befc1d3a5a
1 changed files with 6 additions and 1 deletions
|
@ -277,6 +277,7 @@ CheckVolume(
|
||||||
ANSI_STRING ChkdskFunctionName = RTL_CONSTANT_STRING("ChkdskEx");
|
ANSI_STRING ChkdskFunctionName = RTL_CONSTANT_STRING("ChkdskEx");
|
||||||
PVOID Provider;
|
PVOID Provider;
|
||||||
CHKDSKEX ChkdskFunc;
|
CHKDSKEX ChkdskFunc;
|
||||||
|
WCHAR NtDrivePath[64];
|
||||||
UNICODE_STRING DrivePathU;
|
UNICODE_STRING DrivePathU;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
@ -315,7 +316,11 @@ CheckVolume(
|
||||||
|
|
||||||
/* Call provider */
|
/* Call provider */
|
||||||
//PrintString(" Verifying volume %S\n", DrivePath);
|
//PrintString(" Verifying volume %S\n", DrivePath);
|
||||||
RtlInitUnicodeString(&DrivePathU, DrivePath);
|
swprintf(NtDrivePath, L"\\??\\");
|
||||||
|
wcscat(NtDrivePath, DrivePath);
|
||||||
|
NtDrivePath[wcslen(NtDrivePath)-1] = 0;
|
||||||
|
RtlInitUnicodeString(&DrivePathU, NtDrivePath);
|
||||||
|
|
||||||
Status = ChkdskFunc(&DrivePathU,
|
Status = ChkdskFunc(&DrivePathU,
|
||||||
TRUE, // FixErrors
|
TRUE, // FixErrors
|
||||||
TRUE, // Verbose
|
TRUE, // Verbose
|
||||||
|
|
Loading…
Reference in a new issue