mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:31:40 +00:00
[0.4.12] [RDBSS] Avoid CORE-13938
Pierre recommended this hack-fix for 0.4.8rls before.
Avoids "GetVolumeInformation now fails on NFS volume"
I will not retest any RDBSS functionality myself in my tests,
maybe some other tester would be kind enough to retest this?
Please note that I replaced #if 0 with #if 1
as discussed with Pierre. That's different to the patch in ticket.
like in last release
(cherry picked from commit 26080d0c64
)
This commit is contained in:
parent
f57e9ed926
commit
55ea31811b
1 changed files with 10 additions and 0 deletions
|
@ -8319,6 +8319,16 @@ RxQueryNameInfo(
|
||||||
return STATUS_BUFFER_OVERFLOW;
|
return STATUS_BUFFER_OVERFLOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 1 // CORE-13938, rfb: please note I replaced 0 with 1 here
|
||||||
|
if (NodeType(Fcb) == RDBSS_NTC_STORAGE_TYPE_DIRECTORY &&
|
||||||
|
RxContext->Info.LengthRemaining >= sizeof(WCHAR))
|
||||||
|
{
|
||||||
|
NameInfo->FileName[NameInfo->FileNameLength / sizeof(WCHAR)] = L'\\';
|
||||||
|
NameInfo->FileNameLength += sizeof(WCHAR);
|
||||||
|
RxContext->Info.LengthRemaining -= sizeof(WCHAR);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* All correct */
|
/* All correct */
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue