New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query_directory function fix #102

wants to merge 1 commit into
base: master
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings


Just for now

Fixed query_directory function. It incorrectly handled masks with '*' as

beginning character, like '*.doc'.
  • Loading branch information...
Extravert-ir committed Jul 29, 2018
commit 844e7cc759aa6adc7f3991977904a3b3d101e210
@@ -675,7 +675,7 @@ static NTSTATUS query_directory(PIRP Irp) {
if (IrpSp->Parameters.QueryDirectory.FileName && IrpSp->Parameters.QueryDirectory.FileName->Length > 1) {
TRACE("QD filename: %.*S\n", IrpSp->Parameters.QueryDirectory.FileName->Length / sizeof(WCHAR), IrpSp->Parameters.QueryDirectory.FileName->Buffer);
if (IrpSp->Parameters.QueryDirectory.FileName->Buffer[0] != '*') {
if (IrpSp->Parameters.QueryDirectory.FileName->Length > sizeof(WCHAR) || IrpSp->Parameters.QueryDirectory.FileName->Buffer[0] != L'*') {
specific_file = TRUE;
if (FsRtlDoesNameContainWildCards(IrpSp->Parameters.QueryDirectory.FileName)) {
ProTip! Use n and p to navigate between commits in a pull request.