Skip to content

Commit

Permalink
Kernel - Cleanup device.c using IRP OUTPUT macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna committed Apr 15, 2020
1 parent 8cce5a6 commit 057b63c
Show file tree
Hide file tree
Showing 8 changed files with 393 additions and 375 deletions.
7 changes: 1 addition & 6 deletions sys/create.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,7 @@ NTSTATUS DokanGetParentDir(__in const WCHAR *fileName, __out WCHAR **parentDir,

LONG DokanUnicodeStringChar(__in PUNICODE_STRING UnicodeString,
__in WCHAR Char) {
for (ULONG i = 0; i < UnicodeString->Length / sizeof(WCHAR); ++i) {
if (UnicodeString->Buffer[i] == Char) {
return i;
}
}
return -1;
return DokanStringChar(UnicodeString->Buffer, UnicodeString->Length, Char);
}

LONG DokanStringChar(__in PWCHAR String, __in ULONG Length, __in WCHAR Char) {
Expand Down
Loading

0 comments on commit 057b63c

Please sign in to comment.