https://bugs.winehq.org/show_bug.cgi?id=47979
Bug ID: 47979 Summary: NtCreateFile incorrectly returns STATUS_OBJECT_NAME_NOT_FOUND when RootDirectory is populated Product: Wine Version: 4.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: andrew@ziglang.org Distribution: ---
Created attachment 65488 --> https://bugs.winehq.org/attachment.cgi?id=65488 test.c
Please see attached test.c which is a minimal reduction.
$ ls example-dir/
$ zig build-exe --c-source test.c -lc -target i386-windows-gnu && wine test.exe OK, it worked
$ zig build-exe --c-source test.c -lc -target x86_64-windows-gnu && wine64 test.exe NtCreateFile for opening `example-dir` failed with STATUS_OBJECT_NAME_NOT_FOUND
$ wine --version wine-4.17
$ wine64 --version wine-4.17