We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 622933b commit e9f4befCopy full SHA for e9f4bef
sys/create.c
@@ -630,7 +630,8 @@ Return Value:
630
if (RequestContext->Dcb->UNCName != NULL) {
631
UNICODE_STRING fileNameUS =
632
DokanWrapUnicodeString(fileName, fileNameLength);
633
- if (StartsWith(&fileNameUS, RequestContext->Dcb->UNCName)) {
+ if (RtlPrefixUnicodeString(RequestContext->Dcb->UNCName, &fileNameUS,
634
+ /*CaseInSensitive=*/TRUE)) {
635
fileNameLength -= RequestContext->Dcb->UNCName->Length;
636
if (fileNameLength == 0) {
637
fileName[0] = '\\';
0 commit comments