mirror of
https://github.com/reactos/reactos.git
synced 2025-06-02 07:56:16 +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");
|
||||
PVOID Provider;
|
||||
CHKDSKEX ChkdskFunc;
|
||||
WCHAR NtDrivePath[64];
|
||||
UNICODE_STRING DrivePathU;
|
||||
NTSTATUS Status;
|
||||
|
||||
|
@ -315,7 +316,11 @@ CheckVolume(
|
|||
|
||||
/* Call provider */
|
||||
//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,
|
||||
TRUE, // FixErrors
|
||||
TRUE, // Verbose
|
||||
|
|
Loading…
Reference in a new issue